1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 21:45:38 -05:00

stylistic updates

This commit is contained in:
bbedward
2025-07-24 18:44:19 -04:00
parent 366930fc03
commit 4086e914a7

View File

@@ -34,30 +34,9 @@ ScrollView {
anchors.margins: Theme.spacingL
spacing: Theme.spacingM
Row {
width: parent.width
spacing: Theme.spacingM
DankIcon {
name: "apps"
size: Theme.iconSize
color: Theme.primary
anchors.verticalCenter: parent.verticalCenter
}
StyledText {
text: "App Launcher"
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter
}
}
DankToggle {
width: parent.width
text: "Use OS Logo for App Launcher"
text: "Use OS Logo"
description: "Display operating system logo instead of apps icon"
checked: Prefs.useOSLogo
onToggled: (checked) => {
@@ -65,32 +44,16 @@ ScrollView {
}
}
StyledRect {
width: parent.width
height: logoCustomization.implicitHeight + Theme.spacingM * 2
radius: Theme.cornerRadius
color: Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.5)
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.3)
border.width: 1
Row {
width: parent.width - Theme.spacingL
spacing: Theme.spacingL
visible: Prefs.useOSLogo
opacity: visible ? 1 : 0
anchors.left: parent.left
anchors.leftMargin: Theme.spacingL
Column {
id: logoCustomization
anchors.fill: parent
anchors.margins: Theme.spacingM
spacing: Theme.spacingM
StyledText {
text: "OS Logo Customization"
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium
}
Column {
width: parent.width
width: 120
spacing: Theme.spacingS
StyledText {
@@ -101,14 +64,14 @@ ScrollView {
}
DankTextField {
width: 160
height: 36
width: 100
height: 28
placeholderText: "#ffffff"
text: Prefs.osLogoColorOverride
maximumLength: 7
font.pixelSize: Theme.fontSizeMedium
topPadding: Theme.spacingS
bottomPadding: Theme.spacingS
font.pixelSize: Theme.fontSizeSmall
topPadding: Theme.spacingXS
bottomPadding: Theme.spacingXS
onEditingFinished: {
var color = text.trim();
if (color === "" || /^#[0-9A-Fa-f]{6}$/.test(color))
@@ -121,7 +84,7 @@ ScrollView {
}
Column {
width: parent.width
width: 120
spacing: Theme.spacingS
StyledText {
@@ -132,12 +95,12 @@ ScrollView {
}
DankSlider {
width: parent.width
height: 24
width: 100
height: 20
minimum: 0
maximum: 100
value: Math.round(Prefs.osLogoBrightness * 100)
unit: ""
unit: "%"
showValue: true
onSliderValueChanged: (newValue) => {
Prefs.setOSLogoBrightness(newValue / 100);
@@ -147,7 +110,7 @@ ScrollView {
}
Column {
width: parent.width
width: 120
spacing: Theme.spacingS
StyledText {
@@ -158,12 +121,12 @@ ScrollView {
}
DankSlider {
width: parent.width
height: 24
width: 100
height: 20
minimum: 0
maximum: 200
value: Math.round(Prefs.osLogoContrast * 100)
unit: ""
unit: "%"
showValue: true
onSliderValueChanged: (newValue) => {
Prefs.setOSLogoContrast(newValue / 100);
@@ -172,8 +135,6 @@ ScrollView {
}
}
Behavior on opacity {
NumberAnimation {
duration: Theme.mediumDuration
@@ -269,7 +230,7 @@ ScrollView {
StyledText {
width: parent.width
text: "Apps are ordered by usage frequency, then alphabetically."
text: "Apps are ordered by usage frequency, then last used, then alphabetically."
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap