Skip to content
Permalink
Browse files

[ui] Further tweaks to browser feature list toolbar:

- 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 d546053e2f0a8ea06fe958eb6e32f01f89e1b28d
Showing with 65 additions and 65 deletions.
  1. +2 −0 images/images.qrc
  2. +1 −0 images/themes/default/mActionPanTo.svg
  3. +1 −0 images/themes/default/mActionZoomTo.svg
  4. +61 −65 src/ui/qgsdualviewbase.ui
@@ -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>
@@ -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>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><g fill="#6d97c4" fill-rule="evenodd" stroke="#415a75" stroke-linejoin="round"><path d="M12 23l4.5-4.5h-3v-3h-3v3h-3zM1 12l4.5 4.5v-3h3v-3h-3v-3zM12 1l4.5 4.5h-3v3h-3v-3h-3zM23 12l-4.5 4.5v-3h-3v-3h3v-3z"/></g></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M17.961 7A5.961 6.074 0 0 1 12 13.074 5.961 6.074 0 0 1 6.039 7 5.961 6.074 0 0 1 12 .926 5.961 6.074 0 0 1 17.961 7z" transform="matrix(1.40036 0 0 1.3742 -1.674 -.75)" opacity=".8" fill="#e6e6e6" stroke="#505050" stroke-width=".752" stroke-linecap="round" stroke-linejoin="round" stroke-dashoffset="7"/><path d="M7.826 14.088c0 2.086 2.087 2.086 2.087 2.086l-7.304 7.304-2.087-2.087z" fill="#ffcc30" fill-rule="evenodd" stroke="#505050" stroke-linejoin="round" stroke-width="1.043"/><path d="M6.26 15.653l2.088-2.087 2.087 2.087-2.087 2.087z" fill-rule="evenodd" stroke="#505050" stroke-linejoin="round" stroke-width="1.043"/><path d="M10.435 4.175c2.087-3.13 4.635-3.545 6.26-2.087 1.626 1.46-2.086 1.044-4.173 3.13-2.087 2.088 0 6.261-2.087 6.261s-2.087-4.173 0-7.304z" fill="#fcffff" fill-rule="evenodd" opacity=".7"/><path d="M2.087 20.87l4.174-4.174" opacity=".5" stroke="#fcffff" stroke-width="1.043" stroke-linecap="round" stroke-linejoin="round" overflow="visible"/></svg>
@@ -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">
@@ -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>

0 comments on commit d546053

Please sign in to comment.
You can’t perform that action at this time.