remove emacs autosave files
This commit is contained in:
parent
496ed4a60a
commit
40dd8562f4
9 changed files with 0 additions and 283 deletions
|
|
@ -1,93 +0,0 @@
|
||||||
pragma ComponentBehavior: Bound
|
|
||||||
import qs
|
|
||||||
import qs.settings
|
|
||||||
import Quickshell
|
|
||||||
import QtQuick
|
|
||||||
import qs.widgets
|
|
||||||
import qs.modules.Services
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import QtQuick.Controls
|
|
||||||
|
|
||||||
|
|
||||||
PopupWindow {
|
|
||||||
implicitWidth: audioLayout.implicitWidth + 2 * audioLayout.anchors.margins
|
|
||||||
implicitHeight: audioLayout.implicitHeight + 24
|
|
||||||
anchor.edges: Edges.Top | Edges.Right
|
|
||||||
anchor.gravity: Edges.Bottom | Edges.Left
|
|
||||||
anchor.margins.top: 40
|
|
||||||
color: 'transparent'
|
|
||||||
grabFocus: true
|
|
||||||
Rectangle {
|
|
||||||
id: root
|
|
||||||
anchors.fill: parent
|
|
||||||
color: Colors.moduleBg
|
|
||||||
radius: Config.rounding
|
|
||||||
ColumnLayout {
|
|
||||||
id: audioLayout
|
|
||||||
anchors.centerIn: parent
|
|
||||||
anchors.margins: 10
|
|
||||||
spacing: 8
|
|
||||||
Repeater {
|
|
||||||
id: audioRep
|
|
||||||
model: Audio.sinks
|
|
||||||
|
|
||||||
delegate: Rectangle {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
id: audioDelContainer
|
|
||||||
color: Colors.activeModuleBg
|
|
||||||
radius: Config.rounding
|
|
||||||
required property var modelData
|
|
||||||
implicitHeight: audioRow.implicitHeight + 8
|
|
||||||
implicitWidth: audioRow.implicitWidth
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
id: audioRow
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
StyledText {
|
|
||||||
text: audioDelContainer.modelData.nickname
|
|
||||||
Layout.leftMargin: 10
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.maximumWidth: 200
|
|
||||||
elide: Text.ElideRight
|
|
||||||
}
|
|
||||||
StyledIcon {
|
|
||||||
Layout.leftMargin: 10
|
|
||||||
iconName: Audio.getVolumeIcon(audioDelContainer.modelData)
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
cursorShape: Qt.PointingHandCursor
|
|
||||||
acceptedButtons: Qt.LeftButton
|
|
||||||
onClicked: {
|
|
||||||
audioDelContainer.modelData.audio.muted = !audioDelContainer.modelData.audio.muted;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
StyledIcon {
|
|
||||||
iconName: audioDelContainer.modelData === Audio.preferredAudio ? "radio-checked-symbolic" : "radio-symbolic"
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
cursorShape: Qt.PointingHandCursor
|
|
||||||
acceptedButtons: Qt.LeftButton
|
|
||||||
onClicked: {
|
|
||||||
Audio.setDefaultSink(audioDelContainer.modelData);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Slider {
|
|
||||||
Layout.rightMargin: 10
|
|
||||||
value: audioDelContainer.modelData.audio.volume
|
|
||||||
from: 0
|
|
||||||
to: 1
|
|
||||||
onMoved: {
|
|
||||||
audioDelContainer.modelData.audio.volume = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,107 +0,0 @@
|
||||||
pragma ComponentBehavior: Bound
|
|
||||||
import Quickshell
|
|
||||||
import Quickshell.Wayland
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import QtQuick
|
|
||||||
import Qt.labs.folderlistmodel 2.11
|
|
||||||
|
|
||||||
import qs
|
|
||||||
import qs.settings
|
|
||||||
import qs.widgets
|
|
||||||
|
|
||||||
BarComponent {
|
|
||||||
implicitHeight: Config.moduleHeight
|
|
||||||
implicitWidth: Config.moduleHeight
|
|
||||||
required property int screenHeight
|
|
||||||
id: main
|
|
||||||
StyledIcon {
|
|
||||||
iconName: "preferences-desktop-wallpaper-symbolic"
|
|
||||||
anchors.centerIn: parent
|
|
||||||
}
|
|
||||||
MouseArea {
|
|
||||||
id: clickHandler
|
|
||||||
anchors.fill: main
|
|
||||||
acceptedButtons: Qt.LeftButton
|
|
||||||
cursorShape: Qt.PointingHandCursor
|
|
||||||
onClicked: {
|
|
||||||
wallPicker.visible = !wallPicker.visible;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
WlrLayershell {
|
|
||||||
id: wallPicker
|
|
||||||
visible: false
|
|
||||||
exclusionMode: ExclusionMode.Ignore
|
|
||||||
keyboardFocus: WlrKeyboardFocus.OnDemand
|
|
||||||
implicitHeight: main.screenHeight / 8
|
|
||||||
color: 'transparent'
|
|
||||||
anchors {
|
|
||||||
bottom: true
|
|
||||||
left: true
|
|
||||||
right: true
|
|
||||||
}
|
|
||||||
margins {
|
|
||||||
bottom: 20
|
|
||||||
left: 20
|
|
||||||
right: 20
|
|
||||||
}
|
|
||||||
onVisibleChanged: {
|
|
||||||
if (wallPicker.visible)
|
|
||||||
container.forceActiveFocus();
|
|
||||||
}
|
|
||||||
Rectangle {
|
|
||||||
id: container
|
|
||||||
focus: true
|
|
||||||
Keys.onEscapePressed: {
|
|
||||||
wallPicker.visible = false;
|
|
||||||
}
|
|
||||||
anchors.fill: parent
|
|
||||||
color: Colors.base02
|
|
||||||
radius: Config.rounding
|
|
||||||
GridView {
|
|
||||||
id: wallpaperLayout
|
|
||||||
clip: true
|
|
||||||
snapMode: GridView.SnapOneRow
|
|
||||||
flow: GridView.FlowTopToBottom
|
|
||||||
cellHeight: container.height
|
|
||||||
cellWidth: container.width / 8
|
|
||||||
anchors.fill: parent
|
|
||||||
anchors.centerIn: parent
|
|
||||||
anchors.margins: 10
|
|
||||||
model: wallpaperList
|
|
||||||
delegate: ClippingRectangle {
|
|
||||||
id: wallTile
|
|
||||||
clip: true
|
|
||||||
required property var modelData
|
|
||||||
radius: Config.rounding / 1.5
|
|
||||||
color: 'transparent'
|
|
||||||
implicitWidth: wallpaperLayout.cellWidth - 20
|
|
||||||
implicitHeight: wallpaperLayout.cellHeight - 20
|
|
||||||
Image {
|
|
||||||
id: wallpaper
|
|
||||||
anchors.fill: parent
|
|
||||||
source: wallTile.modelData.filePath
|
|
||||||
sourceSize.width: 16 * 30
|
|
||||||
sourceSize.height: 9 * 30
|
|
||||||
asynchronous: true
|
|
||||||
cache: true
|
|
||||||
}
|
|
||||||
MouseArea {
|
|
||||||
id: wpClickHandler
|
|
||||||
anchors.fill: parent
|
|
||||||
cursorShape: Qt.PointingHandCursor
|
|
||||||
acceptedButtons: Qt.LeftButton
|
|
||||||
hoverEnabled: true
|
|
||||||
onClicked: {
|
|
||||||
Config.wallpaper = wallTile.modelData.filePath;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
FolderListModel {
|
|
||||||
id: wallpaperList
|
|
||||||
folder: Qt.resolvedUrl(Config.wallDir)
|
|
||||||
nameFilters: ["*.png"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
[General]
|
|
||||||
barHeight=30
|
|
||||||
floating=false
|
|
||||||
font=Maple Mono
|
|
||||||
fontSize=12
|
|
||||||
iconSize=14
|
|
||||||
opacity=1
|
|
||||||
primaryMon=eDP-1
|
|
||||||
rounding=16
|
|
||||||
showCorners=true
|
|
||||||
wallDir=file:///home/lucy/.walls
|
|
||||||
wallpaper=@Variant(\0\0\0\x11\0\0\0(file:///home/lucy/.walls/frierensuff.png)
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
{
|
|
||||||
"appearance": {
|
|
||||||
"font": "Iosevka",
|
|
||||||
"fontSize": 14,
|
|
||||||
"iconSize": 16,
|
|
||||||
"rounding": 16
|
|
||||||
},
|
|
||||||
"bar": {
|
|
||||||
"floating": true,
|
|
||||||
"height": 38,
|
|
||||||
"moduleHeight": 30,
|
|
||||||
"opacity": 1
|
|
||||||
},
|
|
||||||
"wallpaper": {
|
|
||||||
"wallDir": "/home/lucy/.walls/",
|
|
||||||
"wallpaper": "/home/lucy/.walls/frierensuff.png"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
import Quickshell
|
|
||||||
|
|
||||||
|
|
||||||
ShellRoot {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import Quickshell
|
|
||||||
import QtQuick
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
property bool active: false
|
|
||||||
color: active ? Colors.activeModuleBg : Colors.moduleBg
|
|
||||||
implicitHeight: Config.moduleHeight
|
|
||||||
}
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
import Quickshell
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import QtQuick.Effects
|
|
||||||
import qs
|
|
||||||
import qs.settings
|
|
||||||
|
|
||||||
IconImage {
|
|
||||||
required property string iconName
|
|
||||||
implicitSize: Config.iconSize
|
|
||||||
source: iconName
|
|
||||||
layer.enabled: true
|
|
||||||
layer.effect: MultiEffect {
|
|
||||||
colorization: 1.0
|
|
||||||
colorizationColor: Colors.text
|
|
||||||
brightness: 0.5
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
import QtQuick
|
|
||||||
import qs
|
|
||||||
import qs.settings
|
|
||||||
|
|
||||||
Text {
|
|
||||||
color: Colors.text
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
font.family: Config.font
|
|
||||||
font.pixelSize: Config.fontSize
|
|
||||||
}
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
import Quickshell
|
|
||||||
import QtQuick
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
color: Colors.moduleBg
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue