workspaces to layouts, widgets and styledbutton
This commit is contained in:
parent
968b3db730
commit
38ab22566a
2 changed files with 7 additions and 12 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
|
import qs.config
|
||||||
|
import qs.constants
|
||||||
|
import qs.widgets
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell.Hyprland
|
import Quickshell.Hyprland
|
||||||
import "../../../../config"
|
|
||||||
import "../../../../constants/"
|
|
||||||
import "../../../../styled/"
|
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
required property HyprlandWorkspace modelData
|
required property HyprlandWorkspace modelData
|
||||||
|
|
@ -10,15 +10,12 @@ Loader {
|
||||||
active: modelData.id > 0
|
active: modelData.id > 0
|
||||||
|
|
||||||
sourceComponent: workspace
|
sourceComponent: workspace
|
||||||
property Component workspace: Clickable {
|
property Component workspace: StyledButton {
|
||||||
id: clickable
|
id: clickable
|
||||||
|
|
||||||
width: Dimensions.workspace.width
|
|
||||||
height: Dimensions.workspace.height
|
|
||||||
|
|
||||||
onClicked: modelData.activate()
|
onClicked: modelData.activate()
|
||||||
|
|
||||||
Text {
|
content: Text {
|
||||||
id: icon
|
id: icon
|
||||||
|
|
||||||
font.family: Theme.lucide.font.family
|
font.family: Theme.lucide.font.family
|
||||||
|
|
@ -28,8 +25,6 @@ Loader {
|
||||||
|
|
||||||
color: Theme.palette.basecontent
|
color: Theme.palette.basecontent
|
||||||
|
|
||||||
anchors.centerIn: parent
|
|
||||||
|
|
||||||
states: [
|
states: [
|
||||||
State {
|
State {
|
||||||
name: "focused"
|
name: "focused"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Layouts
|
||||||
import Quickshell.Hyprland
|
import Quickshell.Hyprland
|
||||||
import "../../../../config/"
|
import "../../../../config/"
|
||||||
|
|
||||||
Row {
|
RowLayout {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
spacing: Dimensions.workspace.spacing
|
spacing: Dimensions.workspace.spacing
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue