mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-03 10:56:16 +00:00
formatting
This commit is contained in:
@@ -38,8 +38,7 @@ NLoader {
|
||||
}
|
||||
}
|
||||
}
|
||||
} // NPanel {// id: ioSelector// property int tabIndex: 0// property Item anchorItem: null// signal panelClosed()// function sinkNodes() {// let nodes = Pipewire.nodes && Pipewire.nodes.values ? Pipewire.nodes.values.filter(function(n) {// return n.isSink && n.audio && n.isStream === false;// }) : [];// if (Pipewire.defaultAudioSink)// nodes = nodes.slice().sort(function(a, b) {// if (a.id === Pipewire.defaultAudioSink.id)
|
||||
// return -1;
|
||||
} // NPanel {// id: ioSelector// property int tabIndex: 0// property Item anchorItem: null// signal panelClosed()// function sinkNodes() {// let nodes = Pipewire.nodes && Pipewire.nodes.values ? Pipewire.nodes.values.filter(function(n) {// return n.isSink && n.audio && n.isStream === false;// }) : [];// if (Pipewire.defaultAudioSink)// nodes = nodes.slice().sort(function(a, b) {// if (a.id === Pipewire.defaultAudioSink.id)// return -1;
|
||||
|
||||
// if (b.id === Pipewire.defaultAudioSink.id)
|
||||
// return 1;
|
||||
|
||||
@@ -9,8 +9,8 @@ Variants {
|
||||
delegate: PanelWindow {
|
||||
required property ShellScreen modelData
|
||||
property string wallpaperSource: Qt.resolvedUrl("../../Assets/Tests/wallpaper.png")
|
||||
//property string wallpaperSource: Qt.resolvedUrl("/home/lysec/Pictures/wallpapers/wallhaven-6lqvql.jpg")
|
||||
|
||||
//property string wallpaperSource: Qt.resolvedUrl("/home/lysec/Pictures/wallpapers/wallhaven-6lqvql.jpg")
|
||||
visible: wallpaperSource !== ""
|
||||
color: "transparent"
|
||||
screen: modelData
|
||||
|
||||
@@ -98,8 +98,7 @@ PopupWindow {
|
||||
required property var modelData
|
||||
|
||||
width: listView.width
|
||||
height: (modelData?.isSeparator) ? 8 * scaling : Math.max(32 * scaling,
|
||||
text.height + 8)
|
||||
height: (modelData?.isSeparator) ? 8 * scaling : Math.max(32 * scaling, text.height + 8)
|
||||
color: "transparent"
|
||||
|
||||
property var subMenu: null
|
||||
@@ -334,8 +333,7 @@ PopupWindow {
|
||||
required property var modelData
|
||||
|
||||
width: listView.width
|
||||
height: (modelData?.isSeparator) ? 8 * scaling : Math.max(32 * scaling,
|
||||
subText.height + 8)
|
||||
height: (modelData?.isSeparator) ? 8 * scaling : Math.max(32 * scaling, subText.height + 8)
|
||||
color: "transparent"
|
||||
|
||||
property var subMenu: null
|
||||
|
||||
@@ -21,7 +21,7 @@ NLoader {
|
||||
border.color: Colors.backgroundTertiary
|
||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||
width: 340 * scaling
|
||||
height: 320 * scaling // Reduced height to eliminate bottom space
|
||||
height: 320 * scaling // Reduced height to eliminate bottom space
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.topMargin: Style.marginTiny * scaling
|
||||
@@ -89,7 +89,7 @@ NLoader {
|
||||
|
||||
Repeater {
|
||||
model: 7
|
||||
|
||||
|
||||
NText {
|
||||
text: {
|
||||
// Use the locale's first day of week setting
|
||||
@@ -112,7 +112,7 @@ NLoader {
|
||||
id: grid
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true // Take remaining space
|
||||
Layout.fillHeight: true // Take remaining space
|
||||
Layout.leftMargin: Style.marginSmall * scaling
|
||||
Layout.rightMargin: Style.marginSmall * scaling
|
||||
spacing: 0
|
||||
@@ -157,4 +157,4 @@ NLoader {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,9 +66,15 @@ PanelWindow {
|
||||
border.color: Colors.accentPrimary
|
||||
border.width: Math.max(1, Style.borderThin * scaling)
|
||||
gradient: Gradient {
|
||||
GradientStop { position: 0.0; color: Colors.backgroundTertiary }
|
||||
GradientStop { position: 1.0; color: Colors.backgroundSecondary }
|
||||
}
|
||||
GradientStop {
|
||||
position: 0.0
|
||||
color: Colors.backgroundTertiary
|
||||
}
|
||||
GradientStop {
|
||||
position: 1.0
|
||||
color: Colors.backgroundSecondary
|
||||
}
|
||||
}
|
||||
|
||||
// Animation properties
|
||||
property real scaleValue: 0.8
|
||||
|
||||
Reference in New Issue
Block a user