-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from gerritdevriese/test
Merge the test branch
- Loading branch information
Showing
10 changed files
with
770 additions
and
1,040 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
.project/ | ||
contents/ui/config_ui.py |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import QtGraphicalEffects 1.0 | ||
import QtQuick 2.15 | ||
import org.kde.kirigami 2.15 as Kirigami | ||
|
||
Rectangle { | ||
id: indicator | ||
property int activeZone: 0 | ||
property bool hovering: false | ||
property var zones: [] | ||
width: parent.width | ||
height: parent.height | ||
color: "transparent" | ||
opacity: 1 | ||
|
||
Repeater { | ||
id: indicators | ||
model: zones | ||
|
||
Rectangle { | ||
id: zone | ||
x: ((modelData.x / 100) * (indicator.width)) | ||
y: ((modelData.y / 100) * (indicator.height)) | ||
width: ((modelData.width / 100) * (indicator.width)) | ||
height: ((modelData.height / 100) * (indicator.height)) | ||
color: "transparent" | ||
|
||
Rectangle { | ||
property int padding: 2 | ||
anchors.fill: parent | ||
anchors.margins: padding | ||
Kirigami.Theme.colorSet: Kirigami.Theme.View | ||
Kirigami.Theme.inherit: false | ||
color: (activeZone == index) ? Kirigami.Theme.hoverColor : Kirigami.ColorUtils.tintWithAlpha( Kirigami.Theme.backgroundColor, Qt.rgba(1,1,1), 0.1) | ||
border.color: Kirigami.ColorUtils.tintWithAlpha(color, Kirigami.Theme.textColor, 0.2) | ||
border.width: 1 | ||
radius: 5 | ||
|
||
Behavior on color { | ||
ColorAnimation { | ||
duration: 150 | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import QtQuick 2.15 | ||
import QtGraphicalEffects 1.0 | ||
|
||
DropShadow { | ||
property Item target : null | ||
anchors.fill: target | ||
visible: target.visible | ||
opacity: target.opacity | ||
scale: target.scale | ||
cached: true | ||
horizontalOffset: 0 | ||
verticalOffset: 0 | ||
radius: 32 | ||
samples: (radius*2)+1 | ||
color: '#69000000' | ||
smooth: true | ||
source: target | ||
} |
Oops, something went wrong.