]> git.lyx.org Git - features.git/commit
Add mechanism to change icons in RTL mode
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 21 Jul 2019 23:20:30 +0000 (01:20 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 22 Jul 2019 13:20:38 +0000 (15:20 +0200)
commit2898c335be6114194a15cb1aafe4a3c7c170f212
treed6afea38ad695d692e1bf852cb88cc8ae9a58240
parent3f0e27e16953dc98b58bd3e4cfe472c4eca7be89
Add mechanism to change icons in RTL mode

When the cursor in RTL text, icons for "depth-increment" or
"layout-toggle Enumerate" look wrong.

To fix this, the lfun "bidi" is introduced. "bidi ltr func" behaves
like "func" in LTR text, but is unknown in RTL text. "bidi rtl" does
the opposite. This allows to add two icons, but only have one icon
available. When no document is available, only LTR is assumed.

To make this work, the handling of unknown functions in toolbar has
been changed so this these functions can change dynamically their
existence.

The icon themes `default', `oxygen' and `classic' have been updated
accordingly.

Fixes bug #4451.
49 files changed:
lib/Makefile.am
lib/images/bidi_ltr_depth-decrement.svgz [new file with mode: 0644]
lib/images/bidi_ltr_depth-increment.svgz [new file with mode: 0644]
lib/images/bidi_ltr_layout-toggle_Description.svgz [new file with mode: 0644]
lib/images/bidi_ltr_layout-toggle_Enumerate.svgz [new file with mode: 0644]
lib/images/bidi_ltr_layout-toggle_Itemize.svgz [new file with mode: 0644]
lib/images/bidi_ltr_layout-toggle_List.svgz [new file with mode: 0644]
lib/images/bidi_ltr_layout-toggle_Section.svgz [new file with mode: 0644]
lib/images/bidi_rtl_depth-decrement.svgz [new file with mode: 0644]
lib/images/bidi_rtl_depth-increment.svgz [new file with mode: 0644]
lib/images/bidi_rtl_layout-toggle_Description.svgz [new file with mode: 0644]
lib/images/bidi_rtl_layout-toggle_Enumerate.svgz [new file with mode: 0644]
lib/images/bidi_rtl_layout-toggle_Itemize.svgz [new file with mode: 0644]
lib/images/bidi_rtl_layout-toggle_List.svgz [new file with mode: 0644]
lib/images/bidi_rtl_layout-toggle_Section.svgz [new file with mode: 0644]
lib/images/classic/bidi_ltr_depth-decrement.png [new file with mode: 0644]
lib/images/classic/bidi_ltr_depth-increment.png [new file with mode: 0644]
lib/images/classic/bidi_ltr_layout-toggle_Description.png [new file with mode: 0644]
lib/images/classic/bidi_ltr_layout-toggle_Enumerate.png [new file with mode: 0644]
lib/images/classic/bidi_ltr_layout-toggle_Itemize.png [new file with mode: 0644]
lib/images/classic/bidi_ltr_layout-toggle_List.png [new file with mode: 0644]
lib/images/classic/bidi_ltr_layout-toggle_Section.png [new file with mode: 0644]
lib/images/classic/bidi_rtl_depth-decrement.png [new file with mode: 0644]
lib/images/classic/bidi_rtl_depth-increment.png [new file with mode: 0644]
lib/images/classic/bidi_rtl_layout-toggle_Description.png [new file with mode: 0644]
lib/images/classic/bidi_rtl_layout-toggle_Enumerate.png [new file with mode: 0644]
lib/images/classic/bidi_rtl_layout-toggle_Itemize.png [new file with mode: 0644]
lib/images/classic/bidi_rtl_layout-toggle_List.png [new file with mode: 0644]
lib/images/classic/bidi_rtl_layout-toggle_Section.png [new file with mode: 0644]
lib/images/oxygen/bidi_ltr_depth-decrement.svgz [new file with mode: 0644]
lib/images/oxygen/bidi_ltr_depth-increment.svgz [new file with mode: 0644]
lib/images/oxygen/bidi_ltr_layout-toggle_Description.svgz [new file with mode: 0644]
lib/images/oxygen/bidi_ltr_layout-toggle_Enumerate.svgz [new file with mode: 0644]
lib/images/oxygen/bidi_ltr_layout-toggle_Itemize.svgz [new file with mode: 0644]
lib/images/oxygen/bidi_ltr_layout-toggle_List.svgz [new file with mode: 0644]
lib/images/oxygen/bidi_ltr_layout-toggle_Section.svgz [new file with mode: 0644]
lib/images/oxygen/bidi_rtl_depth-decrement.svgz [new file with mode: 0644]
lib/images/oxygen/bidi_rtl_depth-increment.svgz [new file with mode: 0644]
lib/images/oxygen/bidi_rtl_layout-toggle_Description.svgz [new file with mode: 0644]
lib/images/oxygen/bidi_rtl_layout-toggle_Enumerate.svgz [new file with mode: 0644]
lib/images/oxygen/bidi_rtl_layout-toggle_Itemize.svgz [new file with mode: 0644]
lib/images/oxygen/bidi_rtl_layout-toggle_List.svgz [new file with mode: 0644]
lib/images/oxygen/bidi_rtl_layout-toggle_Section.svgz [new file with mode: 0644]
lib/ui/stdtoolbars.inc
src/FuncCode.h
src/LyXAction.cpp
src/frontends/qt/Action.cpp
src/frontends/qt/GuiApplication.cpp
src/frontends/qt/GuiToolbar.cpp