diff --git a/Common/Theme.qml b/Common/Theme.qml index dabd25ff..a907a192 100644 --- a/Common/Theme.qml +++ b/Common/Theme.qml @@ -70,7 +70,8 @@ Singleton { surfaceContainerHigh: getMatugenColor("surface_container_high", "#292b2f"), error: "#F2B8B5", warning: "#FF9800", - info: "#2196F3" + info: "#2196F3", + success: "#4CAF50" } } else { return StockThemes.getThemeByName(currentTheme, isLightMode) @@ -95,6 +96,7 @@ Singleton { property color error: currentThemeData.error || "#F2B8B5" property color warning: currentThemeData.warning || "#FF9800" property color info: currentThemeData.info || "#2196F3" + property color success: currentThemeData.success || "#4CAF50" property color primaryHover: Qt.rgba(primary.r, primary.g, primary.b, 0.12) property color primaryHoverLight: Qt.rgba(primary.r, primary.g, primary.b, 0.08) diff --git a/Widgets/DankDropdown.qml b/Widgets/DankDropdown.qml index e651f628..7e469659 100644 --- a/Widgets/DankDropdown.qml +++ b/Widgets/DankDropdown.qml @@ -348,7 +348,7 @@ Rectangle { onClicked: { root.currentValue = modelData root.valueChanged(modelData) - dropdownMenu.close() + ListView.view.popupRef.close() } } }