commit
57fb71f574
16 changed files with 91 additions and 21 deletions
|
|
@ -159,6 +159,7 @@ Scope {
|
|||
offsetX: -39
|
||||
offsetY: 0
|
||||
anchors.top: parent.top
|
||||
visible: Settings.settings.showCorners
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -185,6 +186,7 @@ Scope {
|
|||
offsetX: 39
|
||||
offsetY: 0
|
||||
anchors.top: parent.top
|
||||
visible: Settings.settings.showCorners
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -210,6 +212,7 @@ Scope {
|
|||
offsetX: -39
|
||||
offsetY: 0
|
||||
anchors.top: parent.top
|
||||
visible: Settings.settings.showCorners
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -235,6 +238,7 @@ Scope {
|
|||
offsetX: 39
|
||||
offsetY: 0
|
||||
anchors.top: parent.top
|
||||
visible: Settings.settings.showCorners
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,7 +128,6 @@ PanelWindow {
|
|||
text: ToplevelManager?.activeToplevel?.title && ToplevelManager?.activeToplevel?.title.length > 60 ? ToplevelManager?.activeToplevel?.title.substring(0, 60) + "..." : ToplevelManager?.activeToplevel?.title || ""
|
||||
font.pixelSize: 12
|
||||
color: Theme.textSecondary
|
||||
elide: Text.ElideRight
|
||||
anchors.left: icon.right
|
||||
anchors.leftMargin: Settings.settings.showActiveWindowIcon ? 4 : 6
|
||||
anchors.right: parent.right
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ Item {
|
|||
|
||||
width: pill.width
|
||||
height: pill.height
|
||||
visible: brightness >= 0
|
||||
|
||||
Process {
|
||||
id: getBrightnessProcess
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ PopupWindow {
|
|||
Rectangle {
|
||||
id: bg
|
||||
anchors.fill: parent
|
||||
color: Theme.backgroundElevated || "#222"
|
||||
border.color: Theme.border || "#444"
|
||||
color: Theme.surfaceVariant || "#222"
|
||||
border.color: Theme.outline || "#444"
|
||||
border.width: 1
|
||||
radius: 12
|
||||
z: 0
|
||||
|
|
@ -84,7 +84,7 @@ PopupWindow {
|
|||
anchors.centerIn: parent
|
||||
width: parent.width - 20
|
||||
height: 1
|
||||
color: Qt.darker(Theme.backgroundElevated || "#222", 1.4)
|
||||
color: Qt.darker(Theme.surfaceVariant || "#222", 1.4)
|
||||
visible: modelData?.isSeparator ?? false
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -168,11 +168,16 @@ Item {
|
|||
color: {
|
||||
if (model.isFocused)
|
||||
return Theme.accentPrimary;
|
||||
if (model.isActive)
|
||||
return Theme.accentPrimary.lighter(130);
|
||||
if (model.isUrgent)
|
||||
return Theme.error;
|
||||
return Qt.lighter(Theme.surfaceVariant, 1.6);
|
||||
if (model.isActive)
|
||||
return Theme.accentSecondary;
|
||||
if (model.isOccupied)
|
||||
return Theme.accentSecondary;
|
||||
if (model.isUrgent)
|
||||
return Theme.error;
|
||||
|
||||
return Theme.surfaceVariant.lighter(1.5);
|
||||
}
|
||||
scale: model.isFocused ? 1.0 : 0.9
|
||||
z: 0
|
||||
|
|
|
|||
|
|
@ -67,9 +67,9 @@ Scope {
|
|||
process.index = 0;
|
||||
}
|
||||
for (let i = 0; i < data.length; i += 1) {
|
||||
newValues[i + process.index] = Math.min(data.charCodeAt(i), 128) / 128;
|
||||
newValues[process.index] = Math.min(data.charCodeAt(i), 128) / 128;
|
||||
process.index = (process.index+1) % count;
|
||||
}
|
||||
process.index += data.length;
|
||||
values = newValues;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,8 +57,8 @@ Window {
|
|||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: 6
|
||||
color: "#222"
|
||||
border.color: Theme.backgroundTertiary || "#444"
|
||||
color: Theme.backgroundTertiary || "#222"
|
||||
border.color: Theme.outline || "#444"
|
||||
border.width: 1
|
||||
opacity: 0.97
|
||||
z: 1
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
function fetchCoordinates(city, callback, errorCallback) {
|
||||
var geoUrl = "https://geocoding-api.open-meteo.com/v1/search?name=" + encodeURIComponent(city) + "&count=1&language=en&format=json";
|
||||
var geoUrl = "https://geocoding-api.open-meteo.com/v1/search?name=" + encodeURIComponent(city) + "&language=en&format=json";
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.onreadystatechange = function() {
|
||||
if (xhr.readyState === XMLHttpRequest.DONE) {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ Singleton {
|
|||
isFocused: ws.is_focused === true,
|
||||
isActive: ws.is_active === true,
|
||||
isUrgent: ws.is_urgent === true,
|
||||
activeWindowId: ws.active_window_id
|
||||
isOccupied: ws.active_window_id ? true : false
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -124,7 +124,8 @@ Singleton {
|
|||
output: ws.output || "",
|
||||
isFocused: ws.isFocused === true,
|
||||
isActive: ws.isActive === true,
|
||||
isUrgent: ws.isUrgent === true
|
||||
isUrgent: ws.isUrgent === true,
|
||||
isOccupied: ws.isOccupied === true,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ Singleton {
|
|||
property string videoPath: "~/Videos/"
|
||||
property bool showActiveWindowIcon: false
|
||||
property bool showSystemInfoInBar: false
|
||||
property bool showCorners: false
|
||||
property bool showMediaInBar: false
|
||||
property bool useSWWW: false
|
||||
property bool randomWallpaper: false
|
||||
|
|
|
|||
|
|
@ -23,6 +23,6 @@
|
|||
"onAccent": "#0E0F10",
|
||||
"outline": "#565758",
|
||||
|
||||
"shadow": "#0E0F10",
|
||||
"overlay": "#0E0F10"
|
||||
"shadow": "#B30E0F10",
|
||||
"overlay": "#660E0F10"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,8 +97,8 @@ Singleton {
|
|||
property color outline: themeData.outline
|
||||
|
||||
// Shadows & Overlays
|
||||
property color shadow: applyOpacity(themeData.shadow, "B3")
|
||||
property color overlay: applyOpacity(themeData.overlay, "66")
|
||||
property color shadow: themeData.shadow
|
||||
property color overlay: themeData.overlay
|
||||
|
||||
// Font Properties
|
||||
property string fontFamily: "Roboto" // Family for all text
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ PanelWindow {
|
|||
appName: notification.appName || "Notification",
|
||||
summary: notification.summary || "",
|
||||
body: notification.body || "",
|
||||
urgency: notification.urgency || 0,
|
||||
rawNotification: notification,
|
||||
appeared: false,
|
||||
dismissed: false
|
||||
|
|
@ -84,6 +85,8 @@ PanelWindow {
|
|||
width: parent.width
|
||||
color: Theme.backgroundPrimary
|
||||
radius: 20
|
||||
border.color: model.urgency == 2 ? Theme.warning : Theme.outline
|
||||
border.width: 1
|
||||
|
||||
property bool appeared: model.appeared
|
||||
property bool dismissed: model.dismissed
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import qs.Settings
|
|||
Rectangle {
|
||||
id: profileSettingsCard
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: 540
|
||||
Layout.preferredHeight: 580
|
||||
color: Theme.surface
|
||||
radius: 18
|
||||
border.color: "transparent"
|
||||
|
|
@ -252,6 +252,61 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
// Show Corners In Bar Setting
|
||||
RowLayout {
|
||||
spacing: 8
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: 8
|
||||
|
||||
Text {
|
||||
text: "Show Corners"
|
||||
font.family: Theme.fontFamily
|
||||
font.pixelSize: 13
|
||||
font.bold: true
|
||||
color: Theme.textPrimary
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
// Custom Material 3 Switch
|
||||
Rectangle {
|
||||
id: customSwitch4
|
||||
width: 52
|
||||
height: 32
|
||||
radius: 16
|
||||
color: Settings.settings.showCorners ? Theme.accentPrimary : Theme.surfaceVariant
|
||||
border.color: Settings.settings.showCorners ? Theme.accentPrimary : Theme.outline
|
||||
border.width: 2
|
||||
|
||||
Rectangle {
|
||||
id: thumb4
|
||||
width: 28
|
||||
height: 28
|
||||
radius: 14
|
||||
color: Theme.surface
|
||||
border.color: Theme.outline
|
||||
border.width: 1
|
||||
y: 2
|
||||
x: Settings.settings.showCorners ? customSwitch4.width - width - 2 : 2
|
||||
|
||||
Behavior on x {
|
||||
NumberAnimation { duration: 200; easing.type: Easing.OutCubic }
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
Settings.settings.showCorners = !Settings.settings.showCorners
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Show Media In Bar Setting
|
||||
RowLayout {
|
||||
spacing: 8
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ Scope {
|
|||
appName: notification.appName || "Notification",
|
||||
summary: notification.summary || "",
|
||||
body: notification.body || "",
|
||||
urgency: notification.urgency,
|
||||
timestamp: Date.now()
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue