Corners: removed all but the screen corners
- renamed Corners to Corner as it create only a single corner
This commit is contained in:
parent
ef7e187301
commit
4f4c22baf9
7 changed files with 6 additions and 140 deletions
|
|
@ -182,7 +182,7 @@ Scope {
|
||||||
aboveWindows: false
|
aboveWindows: false
|
||||||
implicitHeight: 24
|
implicitHeight: 24
|
||||||
|
|
||||||
Corners {
|
Corner {
|
||||||
id: topLeftCorner
|
id: topLeftCorner
|
||||||
|
|
||||||
position: "bottomleft"
|
position: "bottomleft"
|
||||||
|
|
@ -209,7 +209,7 @@ Scope {
|
||||||
aboveWindows: false
|
aboveWindows: false
|
||||||
implicitHeight: 24
|
implicitHeight: 24
|
||||||
|
|
||||||
Corners {
|
Corner {
|
||||||
id: topRightCorner
|
id: topRightCorner
|
||||||
|
|
||||||
position: "bottomright"
|
position: "bottomright"
|
||||||
|
|
@ -235,7 +235,7 @@ Scope {
|
||||||
aboveWindows: false
|
aboveWindows: false
|
||||||
implicitHeight: 24
|
implicitHeight: 24
|
||||||
|
|
||||||
Corners {
|
Corner {
|
||||||
id: bottomLeftCorner
|
id: bottomLeftCorner
|
||||||
|
|
||||||
position: "topleft"
|
position: "topleft"
|
||||||
|
|
@ -261,7 +261,7 @@ Scope {
|
||||||
aboveWindows: false
|
aboveWindows: false
|
||||||
implicitHeight: 24
|
implicitHeight: 24
|
||||||
|
|
||||||
Corners {
|
Corner{
|
||||||
id: bottomRightCorner
|
id: bottomRightCorner
|
||||||
|
|
||||||
position: "topright"
|
position: "topright"
|
||||||
|
|
|
||||||
|
|
@ -140,31 +140,6 @@ PanelWindow {
|
||||||
maximumLineCount: 1
|
maximumLineCount: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
|
||||||
active: Settings.settings.showCorners
|
|
||||||
anchors.top: parent.top
|
|
||||||
sourceComponent: Item {
|
|
||||||
Corners {
|
|
||||||
id: activeCornerRight
|
|
||||||
position: "bottomleft"
|
|
||||||
size: 1.1
|
|
||||||
fillColor: Theme.backgroundPrimary
|
|
||||||
anchors.top: parent.top
|
|
||||||
offsetX: activeWindowTitleContainer.width - 34
|
|
||||||
offsetY: -1
|
|
||||||
}
|
|
||||||
|
|
||||||
Corners {
|
|
||||||
id: activeCornerLeft
|
|
||||||
position: "bottomright"
|
|
||||||
size: 1.1
|
|
||||||
fillColor: Theme.backgroundPrimary
|
|
||||||
anchors.top: parent.top
|
|
||||||
offsetX: 34
|
|
||||||
offsetY: -1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -830,34 +830,6 @@ PanelWithOverlay {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
|
||||||
active: Settings.settings.showCorners
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
sourceComponent: Item {
|
|
||||||
Corners {
|
|
||||||
id: launcherCornerRight
|
|
||||||
position: "bottomleft"
|
|
||||||
size: 1.1
|
|
||||||
fillColor: Theme.backgroundPrimary
|
|
||||||
anchors.top: parent.top
|
|
||||||
offsetX: 427
|
|
||||||
offsetY: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
Corners {
|
|
||||||
id: launcherCornerLeft
|
|
||||||
position: "bottomright"
|
|
||||||
size: 1.1
|
|
||||||
fillColor: Theme.backgroundPrimary
|
|
||||||
anchors.top: parent.top
|
|
||||||
offsetX: -427
|
|
||||||
offsetY: 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -294,35 +294,6 @@ WlSessionLock {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
|
||||||
active: Settings.settings.showCorners
|
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
sourceComponent: Item {
|
|
||||||
Corners {
|
|
||||||
id: topRightCorner
|
|
||||||
position: "bottomleft"
|
|
||||||
size: 1.3
|
|
||||||
fillColor: (Theme.backgroundPrimary !== undefined && Theme.backgroundPrimary !== null) ? Theme.backgroundPrimary : "#222"
|
|
||||||
offsetX: screen.width / 2 + 53
|
|
||||||
offsetY: 0
|
|
||||||
anchors.top: parent.top
|
|
||||||
z: 50
|
|
||||||
}
|
|
||||||
|
|
||||||
Corners {
|
|
||||||
id: topLeftCorner
|
|
||||||
position: "bottomright"
|
|
||||||
size: 1.3
|
|
||||||
fillColor: (Theme.backgroundPrimary !== undefined && Theme.backgroundPrimary !== null) ? Theme.backgroundPrimary : "#222"
|
|
||||||
offsetX: -Screen.width / 2 - 53
|
|
||||||
offsetY: 0
|
|
||||||
anchors.top: parent.top
|
|
||||||
z: 51
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: infoColumn.width + 32 * Theme.scale(Screen)
|
width: infoColumn.width + 32 * Theme.scale(Screen)
|
||||||
height: infoColumn.height + 8 * Theme.scale(Screen)
|
height: infoColumn.height + 8 * Theme.scale(Screen)
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ ColumnLayout {
|
||||||
|
|
||||||
ToggleOption {
|
ToggleOption {
|
||||||
label: "Show Corners"
|
label: "Show Corners"
|
||||||
description: "Display rounded corners"
|
description: "Display rounded corners on the edge of the screen"
|
||||||
value: Settings.settings.showCorners
|
value: Settings.settings.showCorners
|
||||||
onToggled: function() {
|
onToggled: function() {
|
||||||
Settings.settings.showCorners = !Settings.settings.showCorners;
|
Settings.settings.showCorners = !Settings.settings.showCorners;
|
||||||
|
|
|
||||||
|
|
@ -382,58 +382,6 @@ PanelWithOverlay {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
|
||||||
active: Settings.settings.showCorners
|
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
sourceComponent: Item {
|
|
||||||
Corners {
|
|
||||||
id: sidebarCornerLeft
|
|
||||||
|
|
||||||
position: "bottomright"
|
|
||||||
size: 1.1
|
|
||||||
fillColor: Theme.backgroundPrimary
|
|
||||||
anchors.top: parent.top
|
|
||||||
offsetX: -464 + sidebarPopupRect.slideOffset
|
|
||||||
offsetY: 0
|
|
||||||
|
|
||||||
Behavior on offsetX {
|
|
||||||
enabled: !sidebarPopupRect.isAnimating
|
|
||||||
|
|
||||||
NumberAnimation {
|
|
||||||
duration: 300
|
|
||||||
easing.type: Easing.OutCubic
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Corners {
|
|
||||||
id: sidebarCornerBottom
|
|
||||||
|
|
||||||
position: "bottomright"
|
|
||||||
size: 1.1
|
|
||||||
fillColor: Theme.backgroundPrimary
|
|
||||||
anchors.bottom: sidebarPopupRect.bottom
|
|
||||||
offsetX: 33 + sidebarPopupRect.slideOffset
|
|
||||||
offsetY: 46
|
|
||||||
|
|
||||||
Behavior on offsetX {
|
|
||||||
enabled: !sidebarPopupRect.isAnimating
|
|
||||||
|
|
||||||
NumberAnimation {
|
|
||||||
duration: 300
|
|
||||||
easing.type: Easing.OutCubic
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue