Skip to content

Commit 66e03e5

Browse files
authored
Merge pull request #4689 from Autodesk/deboisj/EMSUSD-3908_hover_ef_icon
EMSUSD-3908 Hover EF icon
2 parents 1950e33 + 7944d78 commit 66e03e5

8 files changed

Lines changed: 10 additions & 2 deletions

File tree

lib/usd/ui/layerEditor/layerEditorWidget.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,9 +534,11 @@ void LayerEditorWidget::updateButtons()
534534
_buttons._toggleEFButton->setStyleSheet(
535535
QString("QPushButton { padding: %1px; background-image: url(%2); "
536536
"background-position: center center; background-repeat: no-repeat; "
537-
"border: 0px; background-origin: content; }")
537+
"border: 0px; background-origin: content; }"
538+
"QPushButton::hover { background-image: url(%3); }")
538539
.arg(DPIScale(4))
539-
.arg(QtUtils::getDPIPixmapName(baseName)));
540+
.arg(QtUtils::getDPIPixmapName(baseName))
541+
.arg(QtUtils::getDPIPixmapName(QString(baseName) + "_hover")));
540542
}
541543
#endif
542544
}

lib/usd/ui/layerEditor/resources.qrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@
88
<file alias="ef_default_100.png">resources/ef_default_100.png</file>
99
<file alias="ef_default_150.png">resources/ef_default_150.png</file>
1010
<file alias="ef_default_200.png">resources/ef_default_200.png</file>
11+
<file alias="ef_default_hover_100.png">resources/ef_default_hover_100.png</file>
12+
<file alias="ef_default_hover_150.png">resources/ef_default_hover_150.png</file>
13+
<file alias="ef_default_hover_200.png">resources/ef_default_hover_200.png</file>
1114

1215
<file alias="ef_on_100.png">resources/ef_on_100.png</file>
1316
<file alias="ef_on_150.png">resources/ef_on_150.png</file>
1417
<file alias="ef_on_200.png">resources/ef_on_200.png</file>
18+
<file alias="ef_on_hover_100.png">resources/ef_on_hover_100.png</file>
19+
<file alias="ef_on_hover_150.png">resources/ef_on_hover_150.png</file>
20+
<file alias="ef_on_hover_200.png">resources/ef_on_hover_200.png</file>
1521
<file alias="save_all_100.png">resources/save_all_100.png</file>
1622
<file alias="save_all_150.png">resources/save_all_150.png</file>
1723
<file alias="save_all_200.png">resources/save_all_200.png</file>
594 Bytes
Loading
840 Bytes
Loading
1.06 KB
Loading
639 Bytes
Loading
916 Bytes
Loading
1.13 KB
Loading

0 commit comments

Comments
 (0)