mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
NPanel: simplified screen/scaling management
This commit is contained in:
@@ -10,12 +10,8 @@ import qs.Widgets
|
||||
NBox {
|
||||
id: root
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
Layout.fillHeight: true
|
||||
anchors.margins: Style.marginL * scaling
|
||||
|
||||
// No media player detected
|
||||
|
||||
@@ -63,7 +63,7 @@ NBox {
|
||||
tooltipText: "Open settings."
|
||||
onClicked: {
|
||||
settingsPanel.requestedTab = SettingsPanel.Tab.General
|
||||
settingsPanel.open(screen)
|
||||
settingsPanel.open()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ NBox {
|
||||
icon: "power"
|
||||
tooltipText: "Power menu."
|
||||
onClicked: {
|
||||
powerPanel.open(screen)
|
||||
powerPanel.open()
|
||||
sidePanel.close()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ NBox {
|
||||
id: root
|
||||
|
||||
Layout.preferredWidth: Style.baseWidgetSize * 2.625 * scaling
|
||||
implicitHeight: content.implicitHeight + Style.marginXS * 2 * scaling
|
||||
|
||||
ColumnLayout {
|
||||
id: content
|
||||
|
||||
@@ -61,7 +61,7 @@ NBox {
|
||||
onClicked: {
|
||||
var settingsPanel = PanelService.getPanel("settingsPanel")
|
||||
settingsPanel.requestedTab = SettingsPanel.Tab.WallpaperSelector
|
||||
settingsPanel.open(screen)
|
||||
settingsPanel.open()
|
||||
}
|
||||
onRightClicked: {
|
||||
WallpaperService.setRandomWallpaper()
|
||||
|
||||
Reference in New Issue
Block a user