quickshell: IpService: fetch instead of refresh

This commit is contained in:
2025-10-13 05:59:10 +02:00
parent ba194b8fa4
commit 1e06ae479e
7 changed files with 21 additions and 27 deletions

View File

@@ -7,6 +7,7 @@ pragma Singleton
Singleton {
id: root
// Compatibility colors for noctalia modules
property color mPrimary: Colors.primary
property color mOnPrimary: Colors.base
property color mSecondary: Colors.primary

View File

@@ -36,6 +36,7 @@ Singleton {
readonly property string speedReset: "󰾅"
readonly property string reset: "󰑙"
readonly property string lines: ""
// Tabler icons
// Expose the font family name for easy access
readonly property string fontFamily: currentFontLoader ? currentFontLoader.name : ""
readonly property string defaultIcon: TablerIcons.defaultIcon

View File

@@ -49,12 +49,9 @@ NPanel {
}
// Combined blue banner with date/time and weather summary
Rectangle {
NBox {
Layout.fillWidth: true
Layout.preferredHeight: blueColumn.implicitHeight + Style.marginM * 2
radius: Style.radiusL
color: Color.mSurfaceVariant
layer.enabled: true
ColumnLayout {
id: blueColumn
@@ -255,14 +252,6 @@ NPanel {
}
layer.effect: DropShadow {
horizontalOffset: 6
verticalOffset: 6
radius: 8
samples: 12
color: Qt.rgba(0, 0, 0, 0.3)
}
}
// 6-day forecast (outside blue banner)

View File

@@ -116,7 +116,7 @@ Singleton {
repeat: false
running: false
onTriggered: {
refresh();
fetchIP();
}
}
@@ -127,7 +127,9 @@ Singleton {
repeat: true
running: true
onTriggered: {
fetchTimer.stop();
fetchIP();
fetchTimer.start();
}
}