Add ToastService, NToast etc
This commit is contained in:
commit
fa1d0aa8b6
4 changed files with 12 additions and 11 deletions
|
|
@ -53,7 +53,8 @@ Singleton {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!hasValidBarMonitor) {
|
if (!hasValidBarMonitor) {
|
||||||
Logger.log("Settings", "No configured bar monitors found on system, clearing bar monitor list to show on all screens")
|
Logger.log("Settings",
|
||||||
|
"No configured bar monitors found on system, clearing bar monitor list to show on all screens")
|
||||||
adapter.bar.monitors = []
|
adapter.bar.monitors = []
|
||||||
} else {
|
} else {
|
||||||
Logger.log("Settings", "Found valid bar monitors, keeping configuration")
|
Logger.log("Settings", "Found valid bar monitors, keeping configuration")
|
||||||
|
|
@ -108,7 +109,7 @@ Singleton {
|
||||||
property JsonObject bar
|
property JsonObject bar
|
||||||
|
|
||||||
bar: JsonObject {
|
bar: JsonObject {
|
||||||
property string position: "top" // Possible values: "top", "bottom", "left", "right"
|
property string position: "top" // Possible values: "top", "bottom"
|
||||||
property bool showActiveWindow: true
|
property bool showActiveWindow: true
|
||||||
property bool showSystemInfo: false
|
property bool showSystemInfo: false
|
||||||
property bool showMedia: false
|
property bool showMedia: false
|
||||||
|
|
@ -222,7 +223,7 @@ Singleton {
|
||||||
property string fontFamily: "Roboto" // Family for all text
|
property string fontFamily: "Roboto" // Family for all text
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scaling (not stored as JsonObject)
|
// Scaling (not stored inside JsonObject, or it crashes)
|
||||||
property var monitorsScaling: {
|
property var monitorsScaling: {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import qs.Widgets
|
||||||
Rectangle {
|
Rectangle {
|
||||||
readonly property real itemSize: 24 * scaling
|
readonly property real itemSize: 24 * scaling
|
||||||
|
|
||||||
visible: Settings.data.bar.showTray
|
visible: Settings.data.bar.showTray && SystemTray.items.length > 0
|
||||||
width: tray.width + Style.marginM * scaling * 2
|
width: tray.width + Style.marginM * scaling * 2
|
||||||
|
|
||||||
height: Math.round(Style.capsuleHeight * scaling)
|
height: Math.round(Style.capsuleHeight * scaling)
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ Singleton {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Logger.warn(e)
|
//Logger.warn(e)
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1.0
|
return 1.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue