Home_greyopenFATE - openSUSE feature tracking > #306356
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

Icons in YaST: Use /usr/share/icons/hicolor/ as a fallback

Feature state

openSUSE-11.2
Done

Description

YaST icons are expected to be in
/usr/share/YaST2/theme/current/icons/
directory but the list of icons is fixed because the
current
is a symlink to the currently installed and selected theme-directory which is different for openSUSE or SLES. If another (e.g., 3rd party) YaST module wants to add its own icon, it has to put it into the
current
directory which will change when using another YaST theme.

The proposal is simple: If an icon is not found in the
current
theme, try to use
/usr/share/icons/hicolor/
as a fallback.

User benefit:

3rd party add-ons with YaST modules, Our own add-ons with YaST modules (SMT, OES)...

Discussion


icons/user_comment.png C. T. wrote: (9 years ago)

Makes a lot of sense to me with regard to appliances and custom YaST themes.

icons/user_comment.png K. M. wrote: (8 years ago)

Done in yast2-control-center-qt

icons/user_comment.png K. M. wrote: (8 years ago)

Done also in yast2-libyui and yast2-qt. Instead of one global icon search path there can now be several search paths and they're traversed until the correct icon is found. This is done transparently for UIs on libyui level (for selection-like widgets).

Note I've kept the global search path in mostly for compatibility reasons, in order not to break Gtk UI (since I don't speak Gtk and can't adjust the code myself) but I'd like to drop it eventually. Also icons in IconButton type of widget currently do not work in Gtk, but that does not matter, as they're not used anywhere in YaST.

Once the Gtk part is settled, we can set this to 'done'

icons/user_comment.png K. M. wrote: (8 years ago)

yast2-qt, yast2-qt-pkg and yast2-libyui got backported to SLE11SP1 as a whole within package mgmt stack backport, so we got desired functionality there for free.

Now backported also to Qt3 control centre.

Last change: 8 years ago
Voting
Score: 1
  • Negative: 0
  • Neutral: 0
  • Positive: 1
Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint