diff --git a/Babe.pro.user b/Babe.pro.user new file mode 100644 index 0000000..8ee62f3 --- /dev/null +++ b/Babe.pro.user @@ -0,0 +1,336 @@ + + + + + + EnvironmentId + {f5284089-1984-4993-9612-c62dfaae3afc} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + Desktop + Desktop + {a2736d93-184a-4983-8a2e-bc8fe63a6e9e} + 0 + 0 + 0 + + /home/camilo/Coding/qml/build-Babe-Desktop-Debug + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + true + + + /home/camilo/Coding/qml/build-Babe-Desktop-Release + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + + /home/camilo/Coding/qml/build-Babe-Desktop-Profile + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + true + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Profile + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 3 + + + 0 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy locally + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + Babe + + Qt4ProjectManager.Qt4RunConfiguration:/home/camilo/Coding/qml/0.1.0-beta/Babe.pro + true + + Babe.pro + false + + /home/camilo/Coding/qml/build-Babe-Desktop-Debug + 3768 + false + true + false + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 18 + + + Version + 18 + + diff --git a/widgets/SettingsView/SettingsView.qml b/widgets/SettingsView/SettingsView.qml index d9e4746..91a2932 100644 --- a/widgets/SettingsView/SettingsView.qml +++ b/widgets/SettingsView/SettingsView.qml @@ -1,353 +1,353 @@ import QtQuick 2.9 import QtQuick.Layouts 1.3 import QtQuick.Controls 2.2 import org.kde.kirigami 2.2 as Kirigami import "../../utils/Help.js" as H import "../../view_models" import"../../services/local" Kirigami.GlobalDrawer { id: settingsView handleVisible: false signal iconSizeChanged(int size) readonly property bool activeBrainz : bae.brainzState() visible: false y: header.height height: parent.height - header.height - footer.height // // width: root.pageStack.wideMode ? views.width -1: root.width // edge: Qt.RightEdge // interactive: true // focus: true modal:true // dragMargin :0 topPadding: 0 bottomPadding: 0 leftPadding: 0 rightPadding: 0 // handle.y : 64 // handle.anchors.verticalCenter: parent.verticalCenter // handle.anchors.top: parent.bottom // handle.focus: false // handle.y : coverSize //handle.parent: ApplicationWindow.overlay SourcesDialog { id: sourcesDialog } BabeConsole { id: babeConsole } bannerImageSource: "qrc:/assets/banner.svg" actions: [ Kirigami.Action { text: qsTr("YouTube") iconName: "im-youtube" onTriggered: { pageStack.currentIndex = 1 currentView = viewsIndex.youtube } }, Kirigami.Action { text: qsTr("Folders") iconName: "folder" }, Kirigami.Action { text: qsTr("Linking") iconName: isMobile ? "computer-laptop" : "phone" onTriggered: { pageStack.currentIndex = 1 currentView = viewsIndex.linking if(!isLinked) linkingView.linkingConf.open() } }, Kirigami.Action { text: qsTr("Collection") iconName: "database-index" Kirigami.Action { text: qsTr("Sources...") onTriggered: sourcesDialog.open() iconName: "folder-new" } Kirigami.Action { text: qsTr("Re-Scan") onTriggered: bae.refreshCollection(); } Kirigami.Action { text: qsTr("Refresh...") iconName: "view-refresh" Kirigami.Action { text: qsTr("Tracks") onTriggered: H.refreshTracks(); } Kirigami.Action { text: qsTr("Albums") onTriggered: H.refreshAlbums(); } Kirigami.Action { text: qsTr("Artists") onTriggered: H.refreshArtists(); } Kirigami.Action { text: qsTr("All") onTriggered: H.refreshCollection(); } } Kirigami.Action { text: qsTr("Clean") onTriggered: bae.removeMissingTracks(); iconName: "edit-clear" } }, Kirigami.Action { text: qsTr("Settings...") iconName: "view-media-config" Kirigami.Action { text: "Brainz" Kirigami.Action { id: brainzToggle text: checked ? "Turn OFF" : "Turn ON" checked: activeBrainz checkable: true onToggled: { bae.saveSetting("BRAINZ", checked === true ? true : false, "BABE") bae.brainz(checked === true ? true : false) } } } Kirigami.Action { text: "Appearance" Kirigami.Action { text: "Icon size" Kirigami.Action { text: iconSizes.small onTriggered : { bae.saveSetting("ICON_SIZE", text, "BABE") iconSizeChanged(text) } } Kirigami.Action { text: iconSizes.medium onTriggered : { bae.saveSetting("ICON_SIZE", text, "BABE") iconSizeChanged(text) } } Kirigami.Action { text: iconSizes.big onTriggered : { bae.saveSetting("ICON_SIZE", text, "BABE") iconSizeChanged(text) } } } // Kirigami.Action // { // text: "Theme" // visible: isMobile // Kirigami.Action // { // text: "Light" // onTriggered : switchColorScheme("Light") // } // Kirigami.Action // { // text: "Dark" // onTriggered : switchColorScheme("Dark") // } // Kirigami.Action // { // text: "Breeze" // onTriggered : switchColorScheme("Breeze") // } // } } Kirigami.Action { text: "Player" Kirigami.Action { text: "Info label" Kirigami.Action { text: checked ? "ON" : "OFF" checked: infoLabels checkable: true onToggled: { infoLabels = checked bae.saveSetting("PLAYBACKINFO", infoLabels ? true : false, "BABE") } } } Kirigami.Action { text: "Autoplay" checked: autoplay checkable: true onToggled: { autoplay = checked bae.saveSetting("AUTOPLAY", autoplay ? true : false, "BABE") } } } }, Kirigami.Action { text: "Developer" iconName: "code-context" Kirigami.Action { text: "Wiki" } Kirigami.Action { text: "Console log" onTriggered: babeConsole.open() } }, Kirigami.Action { text: "About..." iconName: "help-about" Kirigami.Action { - text: "Beats" + text: "VVAVEIt" } Kirigami.Action { - text: "Babe" + text: "VVAVE" } Kirigami.Action { text: "Pulpo" } Kirigami.Action { text: "Kirigami" } } ] function switchColorScheme(variant) { bae.saveSetting("THEME", variant, "BABE") if(variant === "Light") { backgroundColor = lightBackgroundColor foregroundColor = lightForegroundColor textColor = lightTextColor babeHighlightColor = lightBabeHighlightColor highlightTextColor = lightHighlightTextColor midColor = lightMidColor midLightColor = lightMidLightColor darkColor = lightDarkColor baseColor = lightBaseColor altColor = lightAltColor shadowColor = lightShadowColor }else if(variant === "Dark") { backgroundColor = darkBackgroundColor foregroundColor = darkForegroundColor textColor = darkTextColor babeHighlightColor = darkBabeHighlightColor highlightTextColor = darkHighlightTextColor midColor = darkMidColor midLightColor = darkMidLightColor darkColor = darkDarkColor baseColor = darkBaseColor altColor = darkAltColor shadowColor = darkShadowColor }else if (variant === "Breeze") { backgroundColor = bae.backgroundColor() foregroundColor = bae.foregroundColor() textColor = bae.textColor() babeHighlightColor = bae.highlightColor() highlightTextColor = bae.highlightTextColor() midColor = bae.midColor() midLightColor = bae.midLightColor() darkColor = bae.darkColor() baseColor = bae.baseColor() altColor = bae.altColor() shadowColor = bae.shadowColor() } } }