mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Fixed a bunch of scaling issue in bar NIconButtons
This commit is contained in:
@@ -10,7 +10,8 @@ import qs.Widgets
|
||||
NIconButton {
|
||||
id: root
|
||||
|
||||
property real scaling: 1.0
|
||||
// NIconButton must only define screen, not scaling
|
||||
property ShellScreen screen
|
||||
|
||||
baseSize: Style.capsuleHeight
|
||||
compact: (Settings.data.bar.density === "compact")
|
||||
|
||||
@@ -9,7 +9,8 @@ import qs.Services
|
||||
NIconButton {
|
||||
id: root
|
||||
|
||||
property real scaling: 1.0
|
||||
// NIconButton must only define screen, not scaling
|
||||
property ShellScreen screen
|
||||
|
||||
// Widget properties passed from Bar.qml for per-instance settings
|
||||
property string widgetId: ""
|
||||
|
||||
@@ -12,7 +12,7 @@ Item {
|
||||
id: root
|
||||
|
||||
// Widget properties passed from Bar.qml
|
||||
property var screen
|
||||
property ShellScreen screen
|
||||
property real scaling: 1.0
|
||||
|
||||
// Widget properties passed from Bar.qml for per-instance settings
|
||||
|
||||
@@ -6,7 +6,8 @@ import qs.Services
|
||||
NIconButton {
|
||||
id: root
|
||||
|
||||
property real scaling: 1.0
|
||||
// NIconButton must only define screen, not scaling
|
||||
property ShellScreen screen
|
||||
|
||||
icon: "dark-mode"
|
||||
tooltipText: Settings.data.colorSchemes.darkMode ? I18n.tr("tooltips.switch-to-light-mode") : I18n.tr("tooltips.switch-to-dark-mode")
|
||||
|
||||
@@ -8,7 +8,8 @@ import qs.Widgets
|
||||
NIconButton {
|
||||
id: root
|
||||
|
||||
property real scaling: 1.0
|
||||
// NIconButton must only define screen, not scaling
|
||||
property ShellScreen screen
|
||||
|
||||
baseSize: Style.capsuleHeight
|
||||
compact: (Settings.data.bar.density === "compact")
|
||||
|
||||
@@ -11,7 +11,8 @@ import qs.Widgets
|
||||
NIconButton {
|
||||
id: root
|
||||
|
||||
property real scaling: 1.0
|
||||
// NIconButton must only define screen, not scaling
|
||||
property ShellScreen screen
|
||||
|
||||
compact: (Settings.data.bar.density === "compact")
|
||||
baseSize: Style.capsuleHeight
|
||||
|
||||
@@ -10,7 +10,8 @@ import qs.Widgets
|
||||
NIconButton {
|
||||
id: root
|
||||
|
||||
property real scaling: 1.0
|
||||
// NIconButton must only define screen, not scaling
|
||||
property ShellScreen screen
|
||||
|
||||
// Widget properties passed from Bar.qml for per-instance settings
|
||||
property string widgetId: ""
|
||||
|
||||
@@ -9,7 +9,8 @@ import qs.Widgets
|
||||
NIconButton {
|
||||
id: root
|
||||
|
||||
property real scaling: 1.0
|
||||
// NIconButton must only define screen, not scaling
|
||||
property ShellScreen screen
|
||||
|
||||
baseSize: Style.capsuleHeight
|
||||
visible: PowerProfileService.available
|
||||
|
||||
@@ -7,7 +7,8 @@ import qs.Widgets
|
||||
NIconButton {
|
||||
id: root
|
||||
|
||||
property real scaling: 1.0
|
||||
// NIconButton must only define screen, not scaling
|
||||
property ShellScreen screen
|
||||
|
||||
icon: "camera-video"
|
||||
tooltipText: ScreenRecorderService.isRecording ? I18n.tr("tooltips.click-to-stop-recording") : I18n.tr("tooltips.click-to-start-recording")
|
||||
|
||||
@@ -8,6 +8,7 @@ import qs.Widgets
|
||||
NIconButton {
|
||||
id: root
|
||||
|
||||
property ShellScreen screen
|
||||
property real scaling: 1.0
|
||||
|
||||
compact: (Settings.data.bar.density === "compact")
|
||||
|
||||
@@ -9,7 +9,7 @@ Item {
|
||||
id: root
|
||||
|
||||
// Widget properties passed from Bar.qml
|
||||
property var screen
|
||||
property ShellScreen screen
|
||||
property real scaling: 1.0
|
||||
|
||||
// Widget properties passed from Bar.qml for per-instance settings
|
||||
|
||||
@@ -8,7 +8,8 @@ import qs.Widgets
|
||||
NIconButton {
|
||||
id: root
|
||||
|
||||
property real scaling: 1.0
|
||||
// NIconButton must only define screen, not scaling
|
||||
property ShellScreen screen
|
||||
|
||||
baseSize: Style.capsuleHeight
|
||||
compact: (Settings.data.bar.density === "compact")
|
||||
|
||||
@@ -10,7 +10,8 @@ import qs.Widgets
|
||||
NIconButton {
|
||||
id: root
|
||||
|
||||
property real scaling: 1.0
|
||||
// NIconButton must only define screen, not scaling
|
||||
property ShellScreen screen
|
||||
|
||||
compact: (Settings.data.bar.density === "compact")
|
||||
baseSize: Style.capsuleHeight
|
||||
|
||||
@@ -8,6 +8,7 @@ Rectangle {
|
||||
id: root
|
||||
|
||||
property real baseSize: Style.baseWidgetSize
|
||||
property real scaling: 1.0
|
||||
|
||||
property string icon
|
||||
property string tooltipText
|
||||
|
||||
Reference in New Issue
Block a user