NPanel: simplified screen/scaling management
This commit is contained in:
parent
6ea1e2b4c7
commit
82ac49ce85
28 changed files with 120 additions and 163 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue