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 Mar 18, 2024
1 parent bb50865 commit 7c17185
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
1.3.x.x (relative to 1.3.14.0)
=======

Fixes
-----

- 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.



1.3.14.0 (relative to 1.3.13.1)
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: 16px;
}
QLabel#gafferPlugLabel[gafferValueChanged="true"] {
background-image: url(:/valueChanged.png);
background-repeat: no-repeat;
background-position: left;
padding-left: 16px;
}
QLabel#gafferDefaultRowLabel {
Expand Down

0 comments on commit 7c17185

Please sign in to comment.