commit
57fb71f574
16 changed files with 91 additions and 21 deletions
|
|
@ -159,6 +159,7 @@ Scope {
|
||||||
offsetX: -39
|
offsetX: -39
|
||||||
offsetY: 0
|
offsetY: 0
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
visible: Settings.settings.showCorners
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -185,6 +186,7 @@ Scope {
|
||||||
offsetX: 39
|
offsetX: 39
|
||||||
offsetY: 0
|
offsetY: 0
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
visible: Settings.settings.showCorners
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -210,6 +212,7 @@ Scope {
|
||||||
offsetX: -39
|
offsetX: -39
|
||||||
offsetY: 0
|
offsetY: 0
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
visible: Settings.settings.showCorners
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -235,6 +238,7 @@ Scope {
|
||||||
offsetX: 39
|
offsetX: 39
|
||||||
offsetY: 0
|
offsetY: 0
|
||||||
anchors.top: parent.top
|
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 || ""
|
text: ToplevelManager?.activeToplevel?.title && ToplevelManager?.activeToplevel?.title.length > 60 ? ToplevelManager?.activeToplevel?.title.substring(0, 60) + "..." : ToplevelManager?.activeToplevel?.title || ""
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
elide: Text.ElideRight
|
|
||||||
anchors.left: icon.right
|
anchors.left: icon.right
|
||||||
anchors.leftMargin: Settings.settings.showActiveWindowIcon ? 4 : 6
|
anchors.leftMargin: Settings.settings.showActiveWindowIcon ? 4 : 6
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ Item {
|
||||||
|
|
||||||
width: pill.width
|
width: pill.width
|
||||||
height: pill.height
|
height: pill.height
|
||||||
|
visible: brightness >= 0
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: getBrightnessProcess
|
id: getBrightnessProcess
|
||||||
|
|
|
||||||
|
|
@ -51,8 +51,8 @@ PopupWindow {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: bg
|
id: bg
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Theme.backgroundElevated || "#222"
|
color: Theme.surfaceVariant || "#222"
|
||||||
border.color: Theme.border || "#444"
|
border.color: Theme.outline || "#444"
|
||||||
border.width: 1
|
border.width: 1
|
||||||
radius: 12
|
radius: 12
|
||||||
z: 0
|
z: 0
|
||||||
|
|
@ -84,7 +84,7 @@ PopupWindow {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: parent.width - 20
|
width: parent.width - 20
|
||||||
height: 1
|
height: 1
|
||||||
color: Qt.darker(Theme.backgroundElevated || "#222", 1.4)
|
color: Qt.darker(Theme.surfaceVariant || "#222", 1.4)
|
||||||
visible: modelData?.isSeparator ?? false
|
visible: modelData?.isSeparator ?? false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,11 +168,16 @@ Item {
|
||||||
color: {
|
color: {
|
||||||
if (model.isFocused)
|
if (model.isFocused)
|
||||||
return Theme.accentPrimary;
|
return Theme.accentPrimary;
|
||||||
if (model.isActive)
|
|
||||||
return Theme.accentPrimary.lighter(130);
|
|
||||||
if (model.isUrgent)
|
if (model.isUrgent)
|
||||||
return Theme.error;
|
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
|
scale: model.isFocused ? 1.0 : 0.9
|
||||||
z: 0
|
z: 0
|
||||||
|
|
|
||||||
|
|
@ -67,9 +67,9 @@ Scope {
|
||||||
process.index = 0;
|
process.index = 0;
|
||||||
}
|
}
|
||||||
for (let i = 0; i < data.length; i += 1) {
|
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;
|
values = newValues;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Window 2.15
|
import QtQuick.Window 2.15
|
||||||
import qs.Settings
|
import qs.Settings
|
||||||
|
|
||||||
|
|
@ -57,8 +57,8 @@ Window {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: 6
|
radius: 6
|
||||||
color: "#222"
|
color: Theme.backgroundTertiary || "#222"
|
||||||
border.color: Theme.backgroundTertiary || "#444"
|
border.color: Theme.outline || "#444"
|
||||||
border.width: 1
|
border.width: 1
|
||||||
opacity: 0.97
|
opacity: 0.97
|
||||||
z: 1
|
z: 1
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
function fetchCoordinates(city, callback, errorCallback) {
|
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();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.onreadystatechange = function() {
|
xhr.onreadystatechange = function() {
|
||||||
if (xhr.readyState === XMLHttpRequest.DONE) {
|
if (xhr.readyState === XMLHttpRequest.DONE) {
|
||||||
|
|
|
||||||
|
|
@ -49,10 +49,10 @@ Singleton {
|
||||||
isFocused: ws.is_focused === true,
|
isFocused: ws.is_focused === true,
|
||||||
isActive: ws.is_active === true,
|
isActive: ws.is_active === true,
|
||||||
isUrgent: ws.is_urgent === true,
|
isUrgent: ws.is_urgent === true,
|
||||||
activeWindowId: ws.active_window_id
|
isOccupied: ws.active_window_id ? true : false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
workspacesList.sort((a, b) => {
|
workspacesList.sort((a, b) => {
|
||||||
if (a.output !== b.output) {
|
if (a.output !== b.output) {
|
||||||
return a.output.localeCompare(b.output);
|
return a.output.localeCompare(b.output);
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,8 @@ Singleton {
|
||||||
output: ws.output || "",
|
output: ws.output || "",
|
||||||
isFocused: ws.isFocused === true,
|
isFocused: ws.isFocused === true,
|
||||||
isActive: ws.isActive === 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 string videoPath: "~/Videos/"
|
||||||
property bool showActiveWindowIcon: false
|
property bool showActiveWindowIcon: false
|
||||||
property bool showSystemInfoInBar: false
|
property bool showSystemInfoInBar: false
|
||||||
|
property bool showCorners: false
|
||||||
property bool showMediaInBar: false
|
property bool showMediaInBar: false
|
||||||
property bool useSWWW: false
|
property bool useSWWW: false
|
||||||
property bool randomWallpaper: false
|
property bool randomWallpaper: false
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,6 @@
|
||||||
"onAccent": "#0E0F10",
|
"onAccent": "#0E0F10",
|
||||||
"outline": "#565758",
|
"outline": "#565758",
|
||||||
|
|
||||||
"shadow": "#0E0F10",
|
"shadow": "#B30E0F10",
|
||||||
"overlay": "#0E0F10"
|
"overlay": "#660E0F10"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -97,8 +97,8 @@ Singleton {
|
||||||
property color outline: themeData.outline
|
property color outline: themeData.outline
|
||||||
|
|
||||||
// Shadows & Overlays
|
// Shadows & Overlays
|
||||||
property color shadow: applyOpacity(themeData.shadow, "B3")
|
property color shadow: themeData.shadow
|
||||||
property color overlay: applyOpacity(themeData.overlay, "66")
|
property color overlay: themeData.overlay
|
||||||
|
|
||||||
// Font Properties
|
// Font Properties
|
||||||
property string fontFamily: "Roboto" // Family for all text
|
property string fontFamily: "Roboto" // Family for all text
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ PanelWindow {
|
||||||
appName: notification.appName || "Notification",
|
appName: notification.appName || "Notification",
|
||||||
summary: notification.summary || "",
|
summary: notification.summary || "",
|
||||||
body: notification.body || "",
|
body: notification.body || "",
|
||||||
|
urgency: notification.urgency || 0,
|
||||||
rawNotification: notification,
|
rawNotification: notification,
|
||||||
appeared: false,
|
appeared: false,
|
||||||
dismissed: false
|
dismissed: false
|
||||||
|
|
@ -84,6 +85,8 @@ PanelWindow {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
color: Theme.backgroundPrimary
|
color: Theme.backgroundPrimary
|
||||||
radius: 20
|
radius: 20
|
||||||
|
border.color: model.urgency == 2 ? Theme.warning : Theme.outline
|
||||||
|
border.width: 1
|
||||||
|
|
||||||
property bool appeared: model.appeared
|
property bool appeared: model.appeared
|
||||||
property bool dismissed: model.dismissed
|
property bool dismissed: model.dismissed
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import qs.Settings
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: profileSettingsCard
|
id: profileSettingsCard
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 540
|
Layout.preferredHeight: 580
|
||||||
color: Theme.surface
|
color: Theme.surface
|
||||||
radius: 18
|
radius: 18
|
||||||
border.color: "transparent"
|
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
|
// Show Media In Bar Setting
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ Scope {
|
||||||
appName: notification.appName || "Notification",
|
appName: notification.appName || "Notification",
|
||||||
summary: notification.summary || "",
|
summary: notification.summary || "",
|
||||||
body: notification.body || "",
|
body: notification.body || "",
|
||||||
|
urgency: notification.urgency,
|
||||||
timestamp: Date.now()
|
timestamp: Date.now()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue