Skip to content

Commit

Permalink
Make digitizing toolbar icons look splendy on all DPI screens
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Sep 30, 2024
1 parent 7656b3e commit 58d3c26
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 14 deletions.
12 changes: 2 additions & 10 deletions images/images.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,8 @@
<file>themes/qfield/xxxhdpi/ic_create_white_24dp.png</file>
<file>themes/qfield/nodpi/ic_clear_white_24dp.svg</file>
<file>themes/qfield/nodpi/ic_add_white_24dp.svg</file>
<file>themes/qfield/hdpi/ic_add_vertex_white_24dp.png</file>
<file>themes/qfield/mdpi/ic_add_vertex_white_24dp.png</file>
<file>themes/qfield/xhdpi/ic_add_vertex_white_24dp.png</file>
<file>themes/qfield/xxhdpi/ic_add_vertex_white_24dp.png</file>
<file>themes/qfield/xxxhdpi/ic_add_vertex_white_24dp.png</file>
<file>themes/qfield/hdpi/ic_remove_vertex_white_24dp.png</file>
<file>themes/qfield/mdpi/ic_remove_vertex_white_24dp.png</file>
<file>themes/qfield/xhdpi/ic_remove_vertex_white_24dp.png</file>
<file>themes/qfield/xxhdpi/ic_remove_vertex_white_24dp.png</file>
<file>themes/qfield/xxxhdpi/ic_remove_vertex_white_24dp.png</file>
<file>themes/qfield/nodpi/ic_add_vertex_white_24dp.svg</file>
<file>themes/qfield/nodpi/ic_remove_vertex_white_24dp.svg</file>
<file>themes/qfield/nodpi/ic_menu_white_24dp.svg</file>
<file>themes/qfield/nodpi/ic_move_white_24dp.svg</file>
<file>themes/qfield/nodpi/ic_location_white_24dp.svg</file>
Expand Down
Binary file removed images/themes/qfield/hdpi/ic_add_vertex_white_24dp.png
Binary file not shown.
Binary file not shown.
Binary file removed images/themes/qfield/mdpi/ic_add_vertex_white_24dp.png
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions images/themes/qfield/nodpi/ic_add_vertex_white_24dp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions images/themes/qfield/nodpi/ic_remove_vertex_white_24dp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/themes/qfield/xhdpi/ic_add_vertex_white_24dp.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions src/qml/DigitizingToolbar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ QfVisibilityFadingRow {

QfToolButton {
id: removeVertexButton
iconSource: Theme.getThemeIcon("ic_remove_vertex_white_24dp")
iconSource: Theme.getThemeVectorIcon("ic_remove_vertex_white_24dp")
visible: rubberbandModel && rubberbandModel.vertexCount > 1
round: true
bgcolor: Theme.darkGray
Expand Down Expand Up @@ -162,7 +162,7 @@ QfVisibilityFadingRow {
Theme.darkGray;
}
}
iconSource: Theme.getThemeIcon("ic_add_vertex_white_24dp")
iconSource: Theme.getThemeVectorIcon("ic_add_vertex_white_24dp")
iconColor: enabled ? "white" : Theme.darkGraySemiOpaque

property bool lastAdditionAveraged: false
Expand Down
3 changes: 1 addition & 2 deletions src/qml/OverlayFeatureFormDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ Drawer {

FeatureForm {
id: overlayFeatureForm
height: parent.height
width: parent.width
anchors.fill: parent
visible: true

topMargin: overlayFeatureFormDrawer.y == 0 ? mainWindow.sceneTopMargin : 0.0
Expand Down

0 comments on commit 58d3c26

Please sign in to comment.