Skip to content

Commit

Permalink
[ui] Further tweaks to browser feature list toolbar:
Browse files Browse the repository at this point in the history
- use dedicated icons (avoids confusion with pan/zoom to selected features)
- use even spacing across the row (looks much better, more spacing)
  • Loading branch information
nirvn committed May 16, 2019
1 parent 0804e34 commit d546053
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 65 deletions.
2 changes: 2 additions & 0 deletions images/images.qrc
Expand Up @@ -329,6 +329,7 @@
<file>themes/default/mActionOffsetPointSymbols.svg</file>
<file>themes/default/mActionOptions.svg</file>
<file>themes/default/mActionPan.svg</file>
<file>themes/default/mActionPanTo.svg</file>
<file>themes/default/mActionPanToSelected.svg</file>
<file>themes/default/mActionPinLabels.svg</file>
<file>themes/default/mActionProcessSelected.svg</file>
Expand Down Expand Up @@ -408,6 +409,7 @@
<file>themes/default/mActionZoomLast.svg</file>
<file>themes/default/mActionZoomNext.svg</file>
<file>themes/default/mActionZoomOut.svg</file>
<file>themes/default/mActionZoomTo.svg</file>
<file>themes/default/mActionZoomToBookmark.svg</file>
<file>themes/default/mActionZoomToLayer.svg</file>
<file>themes/default/mActionZoomToSelected.svg</file>
Expand Down
1 change: 1 addition & 0 deletions images/themes/default/mActionPanTo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/themes/default/mActionZoomTo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
126 changes: 61 additions & 65 deletions src/ui/qgsdualviewbase.ui
Expand Up @@ -144,6 +144,9 @@
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>1</number>
</property>
<item>
<widget class="QToolButton" name="mFirstFeatureButton">
<property name="maximumSize">
Expand Down Expand Up @@ -256,71 +259,64 @@
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QToolButton" name="mFlashButton">
<property name="toolTip">
<string>Highlight currently edited feature on map</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionHighlightFeature.svg</normaloff>:/images/themes/default/mActionHighlightFeature.svg</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="mAutoPanButton">
<property name="toolTip">
<string>Automatically pan to currently edited feature</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionPanToSelected.svg</normaloff>:/images/themes/default/mActionPanToSelected.svg</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="mAutoZoomButton">
<property name="toolTip">
<string>Automatically zoom to currently edited feature</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionZoomToSelected.svg</normaloff>:/images/themes/default/mActionZoomToSelected.svg</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
<widget class="QToolButton" name="mFlashButton">
<property name="toolTip">
<string>Highlight currently edited feature on map</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionHighlightFeature.svg</normaloff>:/images/themes/default/mActionHighlightFeature.svg</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="mAutoPanButton">
<property name="toolTip">
<string>Automatically pan to currently edited feature</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionPanTo.svg</normaloff>:/images/themes/default/mActionPanTo.svg</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="mAutoZoomButton">
<property name="toolTip">
<string>Automatically zoom to currently edited feature</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionZoomTo.svg</normaloff>:/images/themes/default/mActionZoomTo.svg</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
Expand Down

0 comments on commit d546053

Please sign in to comment.