init: working version
This commit is contained in:
commit
7d8d7dacae
109 changed files with 15066 additions and 0 deletions
15
util/Color.qml
Normal file
15
util/Color.qml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
pragma Singleton
|
||||
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
|
||||
Singleton {
|
||||
function mute(color: color, s: real, v: real): color {
|
||||
if (!s) s = 1.2;
|
||||
if (!v) v = 1.2;
|
||||
const hue = color.hsvHue;
|
||||
const saturation = color.hsvSaturation;
|
||||
const value = color.hsvValue;
|
||||
return Qt.hsva(hue, saturation * s, value / v, 1);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue