fix: window title while keeping new panels
modified: config/BarConfig.qml modified: modules/BatteryMonitor.qml modified: modules/background/DesktopClock.qml modified: modules/bar/Bar.qml modified: modules/controlcenter/WindowFactory.qml modified: modules/controlcenter/WindowTitle.qml
This commit is contained in:
parent
8783a3a95a
commit
f1234bc967
6 changed files with 4 additions and 13 deletions
|
|
@ -45,10 +45,6 @@ JsonObject {
|
||||||
id: "statusIcons",
|
id: "statusIcons",
|
||||||
enabled: true
|
enabled: true
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: "settings",
|
|
||||||
enabled: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: "power",
|
id: "power",
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ Scope {
|
||||||
function onOnBatteryChanged(): void {
|
function onOnBatteryChanged(): void {
|
||||||
if (UPower.onBattery) {
|
if (UPower.onBattery) {
|
||||||
if (Config.utilities.toasts.chargingChanged)
|
if (Config.utilities.toasts.chargingChanged)
|
||||||
Toaster.toast(qsTr("Charger unplugged"), qsTr("Battery is now on AC"), "power_off");
|
Toaster.toast(qsTr("Charger unplugged"), qsTr("Battery is discharging"), "power_off");
|
||||||
} else {
|
} else {
|
||||||
if (Config.utilities.toasts.chargingChanged)
|
if (Config.utilities.toasts.chargingChanged)
|
||||||
Toaster.toast(qsTr("Charger plugged in"), qsTr("Battery is charging"), "power");
|
Toaster.toast(qsTr("Charger plugged in"), qsTr("Battery is charging"), "power");
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ Item {
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: Time.format(Config.services.useTwelveHourClock ? "hh:mm:ss A" : "hh:mm:ss")
|
text: Time.format(Config.services.useTwelveHourClock ? "hh:mm:ss A" : "hh:mm:ss")
|
||||||
|
font.family: Appearance.font.family.clock
|
||||||
font.pointSize: Appearance.font.size.extraLarge
|
font.pointSize: Appearance.font.size.extraLarge
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -158,12 +158,6 @@ ColumnLayout {
|
||||||
sourceComponent: StatusIcons {}
|
sourceComponent: StatusIcons {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DelegateChoice {
|
|
||||||
roleValue: "settings"
|
|
||||||
delegate: WrappedLoader {
|
|
||||||
sourceComponent: SettingsIcon {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
DelegateChoice {
|
DelegateChoice {
|
||||||
roleValue: "power"
|
roleValue: "power"
|
||||||
delegate: WrappedLoader {
|
delegate: WrappedLoader {
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ Singleton {
|
||||||
implicitWidth: cc.implicitWidth
|
implicitWidth: cc.implicitWidth
|
||||||
implicitHeight: cc.implicitHeight
|
implicitHeight: cc.implicitHeight
|
||||||
|
|
||||||
title: qsTr("Settings")
|
title: qsTr("Caelestia Settings - %1").arg(cc.active.slice(0, 1).toUpperCase() + cc.active.slice(1))
|
||||||
|
|
||||||
ControlCenter {
|
ControlCenter {
|
||||||
id: cc
|
id: cc
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ StyledRect {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
|
|
||||||
text: qsTr("Settings")
|
text: qsTr("Caelestia Settings - %1").arg(root.session.active)
|
||||||
font.capitalization: Font.Capitalize
|
font.capitalization: Font.Capitalize
|
||||||
font.pointSize: Appearance.font.size.larger
|
font.pointSize: Appearance.font.size.larger
|
||||||
font.weight: 500
|
font.weight: 500
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue