qgis / qgis3_UIX_discussion

Issue list to sum up and discuss UI/UX related issues
1 stars 2 forks source link

Dialogs quality problems and consistency : replace "non standard" icons #14

Open DelazJ opened 7 years ago

DelazJ commented 7 years ago

Throughout QGIS, dialogs have quality problems. It would be nice if someone could check all dialogs for the following problems: replacing "non standard" icons. We still have some inconsitently used icons (such as the expression builder icon) used throughout qgis.

List of icons (to be completed):

DelazJ commented 7 years ago

@nyalldawson, Any idea on why we have both mIconExpression and mIconExpressionEditorOpen? what would be the difference ?

nyalldawson commented 7 years ago

@DelazJ I the believe one with '...' is supposed to be used for buttons or other actions which open a new expression builder dialog. The other is a generic icon to be used to show that something is set to an expression. Possible the '...' one is redundant, since we don't use '...' in other button icons (eg the projection selector combobox button). @dakcarto looks like you introduced some of these, can you explain the rationale here?

DelazJ commented 7 years ago

Trying to add icons where they should be, I'm looking for good practices. Sometimes, same change in two different files do not have same result (icon shown in one and not in the other one). Given the description of a qtoolbutton (questions concern also qpusbutton) below which I'd like to only show an icon:

The aim is to have an exemple of what is the optimal code for icon insertion and not overload the file with unneeded matters.

<widget class="QToolButton" name="mBrowseButton">
 <property name="toolTip">
   <string>Browse for action</string>
 </property>
 <property name="statusTip">
   <string>Click to browse for an action</string>
 </property>
 <property name="whatsThis">
  <string>Clicking the button will let you select an application to use as the action</string>
 </property>
 <property name="text">
  <string>...</string>
 </property>
 <property name="icon">
  <iconset resource="../../images/images.qrc">
   <normaloff>:/images/themes/default/mActionFileOpen.svg</normaloff>:/images/themes/default/mActionFileOpen.svg</iconset>
 </property>
</widget>

@nirvn @nyalldawson ?