Skip to content

Commit

Permalink
StyleSheet : Reserve space for valueChanged icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmehl committed Apr 2, 2024
1 parent 06c0985 commit 9167a3a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Fixes
- Dispatcher : Fixed shutdown crashes caused by Python slots connected to the dispatch signals [^1].
- Display : Fixed shutdown crashes caused by Python slots connected to `driverCreatedSignal()` and `imageReceivedSignal()` [^1].
- LightPositionTool : Fixed crash when changing the tool mode with nothing selected [^1].
- Fixed a bug on transform tool orientation plugs where the green icon indicating a plug is not set to its default overlapped with the label.

API
---
Expand Down
9 changes: 3 additions & 6 deletions python/GafferUI/_StyleSheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,19 +241,16 @@ def styleColor( key ) :
QLabel#gafferPlugLabel {
/*
QLabel's text layout seems to lurch from one approach
to another in the presence of non-zero padding. So we
need some padding here so that we get a layout that
matches the `gafferValueChanged="true"` styling below.
Ensure that there is enough space reserved for the `valueChanged`
icon whether it is visible or not.
*/
padding-left: 1px;
padding-left: 10px;
}
QLabel#gafferPlugLabel[gafferValueChanged="true"] {
background-image: url(:/valueChanged.png);
background-repeat: no-repeat;
background-position: left;
padding-left: 16px;
}
QLabel#gafferDefaultRowLabel {
Expand Down
20 changes: 10 additions & 10 deletions resources/graphics.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9167a3a

Please sign in to comment.