Skip to content

Commit 16d4335

Browse files
committed
CustomToolButton: Read foreground color from ThemeEngine
1 parent 5ced382 commit 16d4335

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/uicomponents/CustomToolButton.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
import QtQuick
44
import QtQuick.Controls
55
import QtQuick.Controls.Material
6+
import ScratchCPP.Ui
67

78
// Similar to ToolButton, but it's always a (rounded) rectangle
89
// Double click events are not supported, use the clicked() signal like with a QPushButton
910
CustomButton {
10-
property color foregroundColor: Material.theme === Material.Dark ? "white" : "black"
11+
property color foregroundColor: ThemeEngine.foregroundColor
1112
property string toolTipText
1213
property string accessibleDescription: ""
1314
signal clicked()

0 commit comments

Comments
 (0)