Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
duvholt committed May 12, 2024
1 parent ef00757 commit 39f2d2c
Show file tree
Hide file tree
Showing 2 changed files with 155 additions and 155 deletions.
126 changes: 63 additions & 63 deletions plasmoid/contents/ui/configGeneral.qml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import org.kde.kcmutils as KCM

KCM.SimpleKCM {

property alias cfg_showWorkspaceNames : showWorkspaceNames.checked
property alias cfg_filterByCurrentScreen : filterByCurrentScreen.checked
property alias cfg_urgentColorWholeWorkspace : urgentColorWholeWorkspace.checked
property alias cfg_rounded : rounded.checked
property alias cfg_showWorkspaceNames: showWorkspaceNames.checked
property alias cfg_filterByCurrentScreen: filterByCurrentScreen.checked
property alias cfg_urgentColorWholeWorkspace: urgentColorWholeWorkspace.checked
property alias cfg_rounded: rounded.checked
property var cfg_orderWorkspacesBy
property var cfg_style
property var cfg_styleDefault
Expand All @@ -30,129 +30,129 @@ KCM.SimpleKCM {
property var cfg_urgentColorWholeWorkspaceDefault

Kirigami.FormLayout {
id : page
width : childrenRect.width
height : childrenRect.height
id: page
width: childrenRect.width
height: childrenRect.height

ColumnLayout {
Kirigami.FormData.label : i18n("Basic:")
Kirigami.FormData.buddyFor : showWorkspaceNames
Kirigami.FormData.label: i18n("Basic:")
Kirigami.FormData.buddyFor: showWorkspaceNames

CheckBox {
id : showWorkspaceNames
text : i18n("Show workspace names")
checked : plasmoid.configuration.showWorkspaceNames
onCheckedChanged : plasmoid.configuration.showWorkspaceNames = checked
id: showWorkspaceNames
text: i18n("Show workspace names")
checked: plasmoid.configuration.showWorkspaceNames
onCheckedChanged: plasmoid.configuration.showWorkspaceNames = checked
}

CheckBox {
id : filterByCurrentScreen
text : i18n("Filter workspaces by current screen")
checked : plasmoid.configuration.filterByCurrentScreen
onCheckedChanged : plasmoid.configuration.filterByCurrentScreen = checked
id: filterByCurrentScreen
text: i18n("Filter workspaces by current screen")
checked: plasmoid.configuration.filterByCurrentScreen
onCheckedChanged: plasmoid.configuration.filterByCurrentScreen = checked
}

CheckBox {
id : urgentColorWholeWorkspace
text : i18n("Color the whole workspace if urgent")
checked : plasmoid.configuration.urgentColorWholeWorkspace
onCheckedChanged : plasmoid.configuration.urgentColorWholeWorkspace = checked
id: urgentColorWholeWorkspace
text: i18n("Color the whole workspace if urgent")
checked: plasmoid.configuration.urgentColorWholeWorkspace
onCheckedChanged: plasmoid.configuration.urgentColorWholeWorkspace = checked
}

CheckBox {
id : rounded
text : i18n("Rounded corners")
checked : plasmoid.configuration.rounded
onCheckedChanged : plasmoid.configuration.rounded = checked
id: rounded
text: i18n("Rounded corners")
checked: plasmoid.configuration.rounded
onCheckedChanged: plasmoid.configuration.rounded = checked
}
}

Item {
Kirigami.FormData.isSection : true
Kirigami.FormData.isSection: true
}

ColumnLayout {
Kirigami.FormData.label : i18n("Order workspaces by:")
Kirigami.FormData.buddyFor : orderWorkspacesByDefaultRadio
Kirigami.FormData.label: i18n("Order workspaces by:")
Kirigami.FormData.buddyFor: orderWorkspacesByDefaultRadio

RadioButton {
id : orderWorkspacesByDefaultRadio
text : i18n("Default")
checked : cfg_orderWorkspacesBy == "default"
onClicked : {
id: orderWorkspacesByDefaultRadio
text: i18n("Default")
checked: cfg_orderWorkspacesBy == "default"
onClicked: {
cfg_orderWorkspacesBy = "default"
}
}

RadioButton {
id : orderWorkspacesByScreenRadio
text : i18n("Screen")
checked : cfg_orderWorkspacesBy == "screen"
onClicked : {
id: orderWorkspacesByScreenRadio
text: i18n("Screen")
checked: cfg_orderWorkspacesBy == "screen"
onClicked: {
cfg_orderWorkspacesBy = "screen"
}
}

RadioButton {
id : orderWorkspacesByName
text : i18n("Name")
checked : cfg_orderWorkspacesBy == "name"
onClicked : {
id: orderWorkspacesByName
text: i18n("Name")
checked: cfg_orderWorkspacesBy == "name"
onClicked: {
cfg_orderWorkspacesBy = "name"
}
}
}

Item {
Kirigami.FormData.isSection : true
Kirigami.FormData.isSection: true
}

ColumnLayout {
Kirigami.FormData.label : i18n("Indicator style:")
Kirigami.FormData.buddyFor : styleUnderlineRadio
Kirigami.FormData.label: i18n("Indicator style:")
Kirigami.FormData.buddyFor: styleUnderlineRadio

RadioButton {
id : styleUnderlineRadio
text : i18n("Line")
checked : cfg_style == "line"
onClicked : {
id: styleUnderlineRadio
text: i18n("Line")
checked: cfg_style == "line"
onClicked: {
cfg_style = "line"
}
}

RadioButton {
id : styleBorderRadio
text : i18n("Border")
checked : cfg_style == "border"
onClicked : {
id: styleBorderRadio
text: i18n("Border")
checked: cfg_style == "border"
onClicked: {
cfg_style = "border"
}
}
}

Item {
Kirigami.FormData.isSection : true
Kirigami.FormData.isSection: true
}

ColumnLayout {
Kirigami.FormData.label : i18n("Indicator position:")
Kirigami.FormData.buddyFor : indicatorPositionTopRadio
visible : cfg_style == "line"
Kirigami.FormData.label: i18n("Indicator position:")
Kirigami.FormData.buddyFor: indicatorPositionTopRadio
visible: cfg_style == "line"

RadioButton {
id : indicatorPositionTopRadio
text : i18n("Top")
checked : cfg_indicatorPosition == "top"
onClicked : {
id: indicatorPositionTopRadio
text: i18n("Top")
checked: cfg_indicatorPosition == "top"
onClicked: {
cfg_indicatorPosition = "top"
}
}

RadioButton {
id : indicatorPositionBottomRadio
text : i18n("Bottom")
checked : cfg_indicatorPosition == "bottom"
onClicked : {
id: indicatorPositionBottomRadio
text: i18n("Bottom")
checked: cfg_indicatorPosition == "bottom"
onClicked: {
cfg_indicatorPosition = "bottom"
}
}
Expand Down
Loading

0 comments on commit 39f2d2c

Please sign in to comment.