ColorSchemeTab: fixed currently selected scheme to match wallpaper.

This commit is contained in:
LemmyCook 2025-09-11 23:18:13 -04:00
parent 424594a11a
commit 6f70a98b83

View file

@ -188,7 +188,7 @@ ColumnLayout {
border.width: Math.max(1, Style.borderL * scaling) border.width: Math.max(1, Style.borderL * scaling)
border.color: (!Settings.data.colorSchemes.useWallpaperColors border.color: (!Settings.data.colorSchemes.useWallpaperColors
&& (Settings.data.colorSchemes.predefinedScheme === modelData.split("/").pop().replace( && (Settings.data.colorSchemes.predefinedScheme === modelData.split("/").pop().replace(
".json", ""))) ? Color.mPrimary : Color.mOutline ".json", ""))) ? Color.mSecondary : Color.mOutline
scale: root.cardScaleLow scale: root.cardScaleLow
// Mouse area for selection // Mouse area for selection
@ -287,17 +287,17 @@ ColumnLayout {
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
anchors.margins: Style.marginS * scaling anchors.margins: Style.marginS * scaling
width: 24 * scaling width: 28 * scaling
height: 24 * scaling height: 28 * scaling
radius: width * 0.5 radius: width * 0.5
color: Color.mPrimary color: Color.mSecondary
NText { NIcon {
anchors.centerIn: parent icon: "check"
text: "✓" font.pointSize: Style.fontSizeM * scaling
font.pointSize: Style.fontSizeXS * scaling
font.weight: Style.fontWeightBold font.weight: Style.fontWeightBold
color: Color.mOnPrimary color: Color.mOnSecondary
anchors.centerIn: parent
} }
} }