Skip to content

Commit

Permalink
[Gui] Correct padding in Draft Snap toolbars
Browse files Browse the repository at this point in the history
  • Loading branch information
Syres916 authored Nov 27, 2024
1 parent fb7ce64 commit ebe6d60
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/Gui/Stylesheets/FreeCAD Dark.qss
Original file line number Diff line number Diff line change
Expand Up @@ -2793,6 +2793,35 @@ QWidget#thumbnailWidget[state="pressed"] {
padding-right: 12px;
}

QToolBar[objectName="Draft snap"] QToolButton, QToolBar[objectName="draft_snap_widget"] QToolButton {
border: 1px solid transparent;
border-radius: 3px;
padding: 0px;
}

QToolBar[objectName="Draft snap"] QToolButton:checked, QToolBar[objectName="draft_snap_widget"] QToolButton:checked {
border-radius: 3px;
padding: 0px;
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:0.7 #252525, stop:1 #252525);
border-left: 1px solid #020202;
border-top: 1px solid #020202;
border-right: 1px solid #444444;
border-bottom: 1px solid #444444;
}

QToolBar[objectName="Draft snap"] QToolButton:checked:disabled, QToolBar[objectName="draft_snap_widget"] QToolButton:checked:disabled {
background-color: transparent;
border-radius: 3px;
padding: 0px;
outline: none;
}

QToolBar[objectName="Draft snap"] QToolButton:checked:hover, QToolBar[objectName="draft_snap_widget"] QToolButton:checked:hover {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:0.7 #444444, stop:1 #444444);
border: 1px solid #020202;
padding: 0px;
}

/* Below is a fix for indentation in properties, but this is a QT 6 bug only and so is disabled since Windows is as I write this still on QT 5. */
/* QTreeView::item:selected:active#groupsTreeView {
background-color: @ThemeAccentColor1;
Expand Down
29 changes: 29 additions & 0 deletions src/Gui/Stylesheets/FreeCAD Light.qss
Original file line number Diff line number Diff line change
Expand Up @@ -2789,6 +2789,35 @@ QWidget#thumbnailWidget[state="pressed"] {
padding-right: 12px;
}

QToolBar[objectName="Draft snap"] QToolButton, QToolBar[objectName="draft_snap_widget"] QToolButton {
border: 1px solid transparent;
border-radius: 3px;
padding: 0px;
}

QToolBar[objectName="Draft snap"] QToolButton:checked, QToolBar[objectName="draft_snap_widget"] QToolButton:checked {
border-radius: 3px;
padding: 0px;
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #efefef, stop:0.7 #d8d8d8, stop:1 #d8d8d8);
border-left: 1px solid #ababab;
border-top: 1px solid #ababab;
border-right: 1px solid #e1e1e1;
border-bottom: 1px solid #e1e1e1;
}

QToolBar[objectName="Draft snap"] QToolButton:checked:disabled, QToolBar[objectName="draft_snap_widget"] QToolButton:checked:disabled {
background-color: transparent;
border-radius: 3px;
padding: 0px;
outline: none;
}

QToolBar[objectName="Draft snap"] QToolButton:checked:hover, QToolBar[objectName="draft_snap_widget"] QToolButton:checked:hover {
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #efefef, stop:0.7 #d8d8d8, stop:1 #d8d8d8);
border: 1px solid #ababab;
padding: 0px;
}

/* Below is a fix for indentation in properties, but this is a QT 6 bug only and so is disabled since Windows is as I write this still on QT 5. */
/* QTreeView::item:selected:active#groupsTreeView {
background-color: @ThemeAccentColor1;
Expand Down

0 comments on commit ebe6d60

Please sign in to comment.