mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-04 04:28:30 -04:00
theme: large consolidation of colors into Theme.qml, add
surfaceContainerLow/Lowest
This commit is contained in:
@@ -206,7 +206,7 @@ PluginComponent {
|
||||
Rectangle {
|
||||
height: 1
|
||||
width: parent.width
|
||||
color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.12)
|
||||
color: Theme.outlineStrong
|
||||
}
|
||||
|
||||
DankFlickable {
|
||||
|
||||
@@ -96,7 +96,7 @@ PluginComponent {
|
||||
width: autoLabel.implicitWidth + Theme.spacingL * 2
|
||||
height: 28
|
||||
radius: 14
|
||||
color: root.autoMode ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.16) : (autoMouseArea.containsMouse ? Theme.surfaceLight : "transparent")
|
||||
color: root.autoMode ? Theme.primaryPressed : (autoMouseArea.containsMouse ? Theme.surfaceLight : Theme.withAlpha(Theme.surfaceLight, 0))
|
||||
border.color: root.autoMode ? Theme.primary : Theme.outlineMedium
|
||||
border.width: root.autoMode ? 1 : Theme.layerOutlineWidth
|
||||
|
||||
@@ -170,7 +170,7 @@ PluginComponent {
|
||||
radius: Theme.cornerRadius
|
||||
color: {
|
||||
if (isActive)
|
||||
return Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12);
|
||||
return Theme.primaryHover;
|
||||
if (profileMouseArea.containsMouse)
|
||||
return Theme.surfaceLight;
|
||||
return Theme.floatingSurface;
|
||||
|
||||
@@ -333,7 +333,7 @@ PluginComponent {
|
||||
width: peerListColumn.width
|
||||
height: peerCardColumn.implicitHeight + Theme.spacingS * 2
|
||||
radius: Theme.cornerRadius
|
||||
color: modelData.hostname === (TailscaleService.selfNode ? TailscaleService.selfNode.hostname : "") ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.08) : Theme.surfaceContainerHighest
|
||||
color: modelData.hostname === (TailscaleService.selfNode ? TailscaleService.selfNode.hostname : "") ? Theme.primaryHoverLight : Theme.surfaceContainerHighest
|
||||
|
||||
property bool isSelf: modelData.hostname === (TailscaleService.selfNode ? TailscaleService.selfNode.hostname : "")
|
||||
property bool isExpanded: detailRoot.expandedHostname === modelData.hostname
|
||||
|
||||
Reference in New Issue
Block a user