Renamed all tabs qml, so its easier to distinguish them from services
This commit is contained in:
parent
eac335ab95
commit
39cc72f067
13 changed files with 80 additions and 22 deletions
49
Services/ColorSchemes.qml
Normal file
49
Services/ColorSchemes.qml
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
pragma Singleton
|
||||
|
||||
import QtQuick
|
||||
import Qt.labs.folderlistmodel
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
// Component.onCompleted: {
|
||||
// console.log("[ColorSchemes] Service initialized")
|
||||
// loadColorSchemes()
|
||||
// }
|
||||
|
||||
// property var schemes: []
|
||||
// //property string currentScheme: Settings.data.wallpaper.current
|
||||
// property bool scanning: false
|
||||
|
||||
// function loadColorSchemes() {
|
||||
// scanning = true
|
||||
// schemes = []
|
||||
// // Unsetting, then setting the folder will re-trigger the parsing!
|
||||
// folderModel.folder = ""
|
||||
// folderModel.folder = "file://" + Quickshell.shellDir + "/Assets/Matugen/ColorSchemes"
|
||||
// }
|
||||
|
||||
// FolderListModel {
|
||||
// id: folderModel
|
||||
// nameFilters: ["*.json"]
|
||||
// showDirs: false
|
||||
// sortField: FolderListModel.Name
|
||||
// onStatusChanged: {
|
||||
// console.log("sasfjsaflkhfkjhasf")
|
||||
// if (status === FolderListModel.Ready) {
|
||||
// var files = []
|
||||
// for (var i = 0; i < count; i++) {
|
||||
// console.log(get(i, "fileName"))
|
||||
// // var filepath = (Settings.data.wallpaper.directory !== undefined ? Settings.data.wallpaper.directory : "") + "/" + get(
|
||||
// // i, "fileName")
|
||||
// // files.push(filepath)
|
||||
// }
|
||||
// schemes = files
|
||||
// scanning = false
|
||||
// console.log(schemes)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue