]> 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>
Thu, 18 Jun 2020 13:48:42 +0000 (15:48 +0200)
commitd1e68bcae2305bc0d4b95feefd9702dc68653d61
treee1e57fb6850f999b36455b7b3b86f484387aac47
parent627e75677d012641c09aa251989d0b455a6c3a44
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