pywal use icon button
This commit is contained in:
parent
a3931d8aec
commit
4171cc8d56
1 changed files with 4 additions and 14 deletions
|
|
@ -1,27 +1,17 @@
|
||||||
import qs.config
|
import qs.components
|
||||||
import qs.constants
|
import qs.constants
|
||||||
import qs.widgets
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
|
|
||||||
StyledButton {
|
StyledIconButton {
|
||||||
id: clickable
|
id: clickable
|
||||||
|
|
||||||
|
text: Icons.brickWall
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
process.running = true;
|
process.running = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
content: StyledText {
|
|
||||||
id: text
|
|
||||||
|
|
||||||
font.family: Theme.lucide.font.family
|
|
||||||
font.pixelSize: Dimensions.caffeine.fontSize
|
|
||||||
font.bold: true
|
|
||||||
text: Icons.brickWall
|
|
||||||
|
|
||||||
color: clickable.containsMouse ? Theme.palette.base300 : Theme.palette.basecontent
|
|
||||||
}
|
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: process
|
id: process
|
||||||
command: ["sh", "-c", "~/dotfiles/.scripts/pywal-swww.sh"]
|
command: ["sh", "-c", "~/dotfiles/.scripts/pywal-swww.sh"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue