refactor: migrate rest of controlcenter
This commit is contained in:
parent
c869eee460
commit
ee60493bec
8 changed files with 28 additions and 36 deletions
|
|
@ -79,7 +79,7 @@ Item {
|
||||||
|
|
||||||
text: "select_window"
|
text: "select_window"
|
||||||
color: Colours.palette.m3onPrimaryContainer
|
color: Colours.palette.m3onPrimaryContainer
|
||||||
font.pointSize: Tokens.font.size.large
|
font: Tokens.font.icon.large
|
||||||
fill: 1
|
fill: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -193,7 +193,7 @@ Item {
|
||||||
|
|
||||||
text: item.icon
|
text: item.icon
|
||||||
color: item.active ? Colours.palette.m3onSecondaryContainer : Colours.palette.m3onSurface
|
color: item.active ? Colours.palette.m3onSecondaryContainer : Colours.palette.m3onSurface
|
||||||
font.pointSize: Tokens.font.size.large
|
font: Tokens.font.icon.large
|
||||||
fill: item.active ? 1 : 0
|
fill: item.active ? 1 : 0
|
||||||
|
|
||||||
Behavior on fill {
|
Behavior on fill {
|
||||||
|
|
@ -211,7 +211,7 @@ Item {
|
||||||
opacity: 0
|
opacity: 0
|
||||||
text: item.label
|
text: item.label
|
||||||
color: item.active ? Colours.palette.m3onSecondaryContainer : Colours.palette.m3onSurface
|
color: item.active ? Colours.palette.m3onSecondaryContainer : Colours.palette.m3onSurface
|
||||||
font.capitalization: Font.Capitalize
|
font: Tokens.font.label.builders.medium.capitalisation(Font.Capitalize).build()
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|
@ -222,8 +222,7 @@ Item {
|
||||||
anchors.topMargin: Tokens.spacing.extraSmall
|
anchors.topMargin: Tokens.spacing.extraSmall
|
||||||
|
|
||||||
text: item.label
|
text: item.label
|
||||||
font.pointSize: Tokens.font.size.small
|
font: Tokens.font.label.builders.small.capitalisation(Font.Capitalize).build()
|
||||||
font.capitalization: Font.Capitalize
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,7 @@ StyledRect {
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
|
|
||||||
text: qsTr("Caelestia Settings - %1").arg(root.session.active)
|
text: qsTr("Caelestia Settings - %1").arg(root.session.active)
|
||||||
font.capitalization: Font.Capitalize
|
font: Tokens.font.title.builders.medium.capitalisation(Font.Capitalize).weight(500).build()
|
||||||
font.pointSize: Tokens.font.size.larger
|
|
||||||
font.weight: 500
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
|
||||||
|
|
@ -119,8 +119,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Dashboard")
|
text: qsTr("Dashboard")
|
||||||
font.pointSize: Tokens.font.size.large
|
font: Tokens.font.title.builders.medium.weight(500).build()
|
||||||
font.weight: 500
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ SectionContainer {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("General Settings")
|
text: qsTr("General Settings")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.small
|
||||||
}
|
}
|
||||||
|
|
||||||
SwitchRow {
|
SwitchRow {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ SectionContainer {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Performance Resources")
|
text: qsTr("Performance Resources")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.small
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnectedButtonGroup {
|
ConnectedButtonGroup {
|
||||||
|
|
|
||||||
|
|
@ -156,8 +156,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Launcher")
|
text: qsTr("Launcher")
|
||||||
font.pointSize: Tokens.font.size.large
|
font: Tokens.font.title.builders.medium.weight(500).build()
|
||||||
font.weight: 500
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
@ -168,9 +167,9 @@ Item {
|
||||||
toggled: !root.session.launcher.active
|
toggled: !root.session.launcher.active
|
||||||
icon: "settings"
|
icon: "settings"
|
||||||
accent: "Primary"
|
accent: "Primary"
|
||||||
iconSize: Tokens.font.size.normal
|
iconSize: Tokens.font.body.medium.pointSize
|
||||||
horizontalPadding: Tokens.padding.medium
|
horizontalPadding: Tokens.padding.normal
|
||||||
verticalPadding: Tokens.padding.small
|
verticalPadding: Tokens.padding.smaller
|
||||||
tooltip: qsTr("Launcher settings")
|
tooltip: qsTr("Launcher settings")
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
@ -188,8 +187,7 @@ Item {
|
||||||
StyledText {
|
StyledText {
|
||||||
Layout.topMargin: Tokens.spacing.largeIncreased
|
Layout.topMargin: Tokens.spacing.largeIncreased
|
||||||
text: qsTr("Applications (%1)").arg(root.searchText ? root.filteredApps.length : allAppsDb.apps.length)
|
text: qsTr("Applications (%1)").arg(root.searchText ? root.filteredApps.length : allAppsDb.apps.length)
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.builders.small.weight(500).build()
|
||||||
font.weight: 500
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|
@ -354,7 +352,7 @@ Item {
|
||||||
StyledText {
|
StyledText {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: modelData.name || modelData.entry?.name || qsTr("Unknown")
|
text: modelData.name || modelData.entry?.name || qsTr("Unknown")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.body.medium
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|
@ -546,7 +544,7 @@ Item {
|
||||||
|
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
implicitSize: Tokens.font.size.extraLarge * 3 * 2
|
implicitSize: Tokens.font.body.large.pointSize * 3 * 2
|
||||||
source: {
|
source: {
|
||||||
const app = appDetailsLayout.displayedApp;
|
const app = appDetailsLayout.displayedApp;
|
||||||
if (!app)
|
if (!app)
|
||||||
|
|
@ -564,8 +562,7 @@ Item {
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
text: displayedApp ? (displayedApp.name || displayedApp.entry?.name || qsTr("Application Details")) : ""
|
text: displayedApp ? (displayedApp.name || displayedApp.entry?.name || qsTr("Application Details")) : ""
|
||||||
font.pointSize: Tokens.font.size.large
|
font: Tokens.font.title.builders.medium.weight(Font.Bold).build()
|
||||||
font.bold: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Notifications")
|
text: qsTr("Notifications")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.small
|
||||||
}
|
}
|
||||||
|
|
||||||
SplitButtonRow {
|
SplitButtonRow {
|
||||||
|
|
@ -226,7 +226,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Toast settings")
|
text: qsTr("Toast settings")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.small
|
||||||
}
|
}
|
||||||
|
|
||||||
SplitButtonRow {
|
SplitButtonRow {
|
||||||
|
|
|
||||||
|
|
@ -179,8 +179,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Taskbar")
|
text: qsTr("Taskbar")
|
||||||
font.pointSize: Tokens.font.size.large
|
font: Tokens.font.title.builders.medium.weight(500).build()
|
||||||
font.weight: 500
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -190,7 +189,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Status Icons")
|
text: qsTr("Status Icons")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.small
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnectedButtonGroup {
|
ConnectedButtonGroup {
|
||||||
|
|
@ -284,7 +283,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Workspaces")
|
text: qsTr("Workspaces")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.small
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledRect {
|
StyledRect {
|
||||||
|
|
@ -502,7 +501,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Scroll Actions")
|
text: qsTr("Scroll Actions")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.small
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnectedButtonGroup {
|
ConnectedButtonGroup {
|
||||||
|
|
@ -551,7 +550,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Clock")
|
text: qsTr("Clock")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.small
|
||||||
}
|
}
|
||||||
|
|
||||||
SwitchRow {
|
SwitchRow {
|
||||||
|
|
@ -588,7 +587,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Bar Behavior")
|
text: qsTr("Bar Behavior")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.small
|
||||||
}
|
}
|
||||||
|
|
||||||
SwitchRow {
|
SwitchRow {
|
||||||
|
|
@ -641,7 +640,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Active window")
|
text: qsTr("Active window")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.small
|
||||||
}
|
}
|
||||||
|
|
||||||
SwitchRow {
|
SwitchRow {
|
||||||
|
|
@ -677,7 +676,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Popouts")
|
text: qsTr("Popouts")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.small
|
||||||
}
|
}
|
||||||
|
|
||||||
SwitchRow {
|
SwitchRow {
|
||||||
|
|
@ -714,7 +713,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Tray Settings")
|
text: qsTr("Tray Settings")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.small
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnectedButtonGroup {
|
ConnectedButtonGroup {
|
||||||
|
|
@ -755,7 +754,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Monitors")
|
text: qsTr("Monitors")
|
||||||
font.pointSize: Tokens.font.size.normal
|
font: Tokens.font.title.small
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnectedButtonGroup {
|
ConnectedButtonGroup {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue