formatting
This commit is contained in:
parent
a72afcafbb
commit
4fd9779941
5 changed files with 17 additions and 14 deletions
|
|
@ -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)
|
} // 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;
|
||||||
// return -1;
|
|
||||||
|
|
||||||
// if (b.id === Pipewire.defaultAudioSink.id)
|
// if (b.id === Pipewire.defaultAudioSink.id)
|
||||||
// return 1;
|
// return 1;
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ Variants {
|
||||||
delegate: PanelWindow {
|
delegate: PanelWindow {
|
||||||
required property ShellScreen modelData
|
required property ShellScreen modelData
|
||||||
property string wallpaperSource: Qt.resolvedUrl("../../Assets/Tests/wallpaper.png")
|
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 !== ""
|
visible: wallpaperSource !== ""
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
screen: modelData
|
screen: modelData
|
||||||
|
|
|
||||||
|
|
@ -98,8 +98,7 @@ PopupWindow {
|
||||||
required property var modelData
|
required property var modelData
|
||||||
|
|
||||||
width: listView.width
|
width: listView.width
|
||||||
height: (modelData?.isSeparator) ? 8 * scaling : Math.max(32 * scaling,
|
height: (modelData?.isSeparator) ? 8 * scaling : Math.max(32 * scaling, text.height + 8)
|
||||||
text.height + 8)
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
property var subMenu: null
|
property var subMenu: null
|
||||||
|
|
@ -334,8 +333,7 @@ PopupWindow {
|
||||||
required property var modelData
|
required property var modelData
|
||||||
|
|
||||||
width: listView.width
|
width: listView.width
|
||||||
height: (modelData?.isSeparator) ? 8 * scaling : Math.max(32 * scaling,
|
height: (modelData?.isSeparator) ? 8 * scaling : Math.max(32 * scaling, subText.height + 8)
|
||||||
subText.height + 8)
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
property var subMenu: null
|
property var subMenu: null
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ NLoader {
|
||||||
border.color: Colors.backgroundTertiary
|
border.color: Colors.backgroundTertiary
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
width: 340 * 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.top: parent.top
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.topMargin: Style.marginTiny * scaling
|
anchors.topMargin: Style.marginTiny * scaling
|
||||||
|
|
@ -89,7 +89,7 @@ NLoader {
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: 7
|
model: 7
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: {
|
text: {
|
||||||
// Use the locale's first day of week setting
|
// Use the locale's first day of week setting
|
||||||
|
|
@ -112,7 +112,7 @@ NLoader {
|
||||||
id: grid
|
id: grid
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true // Take remaining space
|
Layout.fillHeight: true // Take remaining space
|
||||||
Layout.leftMargin: Style.marginSmall * scaling
|
Layout.leftMargin: Style.marginSmall * scaling
|
||||||
Layout.rightMargin: Style.marginSmall * scaling
|
Layout.rightMargin: Style.marginSmall * scaling
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
@ -157,4 +157,4 @@ NLoader {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -66,9 +66,15 @@ PanelWindow {
|
||||||
border.color: Colors.accentPrimary
|
border.color: Colors.accentPrimary
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
gradient: Gradient {
|
gradient: Gradient {
|
||||||
GradientStop { position: 0.0; color: Colors.backgroundTertiary }
|
GradientStop {
|
||||||
GradientStop { position: 1.0; color: Colors.backgroundSecondary }
|
position: 0.0
|
||||||
}
|
color: Colors.backgroundTertiary
|
||||||
|
}
|
||||||
|
GradientStop {
|
||||||
|
position: 1.0
|
||||||
|
color: Colors.backgroundSecondary
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Animation properties
|
// Animation properties
|
||||||
property real scaleValue: 0.8
|
property real scaleValue: 0.8
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue