]> git.lyx.org Git - features.git/commit
Reimplement properly bidi icons
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 14 Apr 2020 20:41:00 +0000 (22:41 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:56 +0000 (15:48 +0200)
commit89918d635c3e585eae35e922b126e9f7da9b7b65
treea6249eb9227259f8dfc714c2b0cd7fed8766db80
parent2404e73b13d13fcadca0716b652849c32f164b65
Reimplement properly bidi icons

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

Instead of relying on the clumsy "bidi" lfun of 2898c335, this new
version relies on a new Toobar tag BidiItem that inserts an action
which can have two icons, depending on the direction of the paragraph
containing the caret (or of the direction of the UI when no file is
open).

The alternative icon has the same name as the original one, with a
"+rtl" string appended to the lfun string. The alternative icon is
only active if the file is found. The icon themes `default', `oxygen'
and `classic' have been updated accordingly.

Fixes bug #4451.
33 files changed:
lib/Makefile.am
lib/images/classic/depth-decrement+rtl.png [new file with mode: 0644]
lib/images/classic/depth-increment+rtl.png [new file with mode: 0644]
lib/images/classic/layout-toggle_Description+rtl.png [new file with mode: 0644]
lib/images/classic/layout-toggle_Enumerate+rtl.png [new file with mode: 0644]
lib/images/classic/layout-toggle_Itemize+rtl.png [new file with mode: 0644]
lib/images/classic/layout-toggle_Labeling+rtl.png [new file with mode: 0644]
lib/images/classic/layout-toggle_List+rtl.png [new file with mode: 0644]
lib/images/classic/layout-toggle_Section+rtl.png [new file with mode: 0644]
lib/images/depth-decrement+rtl.svgz [new file with mode: 0644]
lib/images/depth-increment+rtl.svgz [new file with mode: 0644]
lib/images/layout-toggle_Description+rtl.svgz [new file with mode: 0644]
lib/images/layout-toggle_Enumerate+rtl.svgz [new file with mode: 0644]
lib/images/layout-toggle_Itemize+rtl.svgz [new file with mode: 0644]
lib/images/layout-toggle_Labeling+rtl.svgz [new file with mode: 0644]
lib/images/layout-toggle_List+rtl.svgz [new file with mode: 0644]
lib/images/layout-toggle_Section+rtl.svgz [new file with mode: 0644]
lib/images/oxygen/depth-decrement+rtl.svgz [new file with mode: 0644]
lib/images/oxygen/depth-increment+rtl.svgz [new file with mode: 0644]
lib/images/oxygen/layout-toggle_Description+rtl.svgz [new file with mode: 0644]
lib/images/oxygen/layout-toggle_Enumerate+rtl.svgz [new file with mode: 0644]
lib/images/oxygen/layout-toggle_Itemize+rtl.svgz [new file with mode: 0644]
lib/images/oxygen/layout-toggle_Labeling+rtl.svgz [new file with mode: 0644]
lib/images/oxygen/layout-toggle_List+rtl.svgz [new file with mode: 0644]
lib/images/oxygen/layout-toggle_Section+rtl.svgz [new file with mode: 0644]
lib/ui/stdtoolbars.inc
src/frontends/qt/Action.cpp
src/frontends/qt/Action.h
src/frontends/qt/GuiApplication.cpp
src/frontends/qt/GuiApplication.h
src/frontends/qt/GuiToolbar.cpp
src/frontends/qt/Toolbars.cpp
src/frontends/qt/Toolbars.h