Warning, /maui/index-fm/src/widgets/ColorsBar.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.14 0002 0003 import org.mauikit.controls 1.3 as Maui 0004 0005 Maui.ColorsRow 0006 { 0007 id: control 0008 0009 colors: ["#f21b51", "#f9a32b", "#3eb881", "#b2b9bd", "#474747"] 0010 0011 signal folderColorPicked(string color) 0012 0013 property string folderColor : "folder" 0014 0015 currentColor : switch(control.folderColor) 0016 { 0017 case "folder-red": "#f21b51"; break; 0018 case "folder-orange": "#f9a32b"; break; 0019 case "folder-green": "#3eb881"; break; 0020 case "folder-grey": "#b2b9bd"; break; 0021 case "folder-black": "#474747"; break; 0022 default : return control.Maui.Theme.backgroundColor; 0023 } 0024 0025 onColorPicked: (color) => 0026 { 0027 switch(color) 0028 { 0029 case "#f21b51" : folderColor = "folder-red"; break; 0030 case "#f9a32b" : folderColor = "folder-orange"; break; 0031 case "#3eb881" : folderColor = "folder-green"; break; 0032 case "#b2b9bd" : folderColor = "folder-grey"; break; 0033 case "#474747" : folderColor = "folder-black"; break; 0034 default : folderColor = "folder"; 0035 } 0036 0037 control.folderColorPicked(folderColor) 0038 } 0039 }