Skip to content

Commit

Permalink
I can just hope this works now
Browse files Browse the repository at this point in the history
  • Loading branch information
trueleo committed Jun 7, 2019
1 parent f75dfc8 commit dc16977
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 31 deletions.
3 changes: 2 additions & 1 deletion contents/ui/config.qml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ ColumnLayout {
}

QtControls.Label {
id: shadowLabel
width: iconLabel.width + iconComboBox.width - circleLabel.width - 2*circleColor.width - units.largeSpacing
visible: !useTimer.checked
anchors.verticalCenter: shadowColor.verticalCenter
Expand Down Expand Up @@ -200,7 +201,7 @@ ColumnLayout {
}

QtControls.Label {
width: formAlignment - units.largeSpacing
width: shadowLabel.width - units.largeSpacing*2
anchors.verticalCenter: radiusValue.verticalCenter
horizontalAlignment: Text.AlignRight
text: "Size:"
Expand Down
Binary file removed contents/ui/config.qmlc
Binary file not shown.
38 changes: 8 additions & 30 deletions contents/ui/main.qml
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
import QtQml 2.0
import QtQuick 2.7
import QtGraphicalEffects 1.0
import org.kde.plasma.core 2.0 as PlasmaCore

Item {
id: root

property variant shadowColor: ["#BBFF0000", "#BBFF7F00", "#BBFFFF00", "#BB00FF00", "#BB0000FF", "#BB4B0082", "#BB9400D3"]
property int last: 0
property int n: shadowColor.length

Loader {
id: cuteLoader
anchors.fill: parent
active: false
source: "./wallpaper/wall.qml"
}

Loader {
id: wallLoader
Expand All @@ -28,6 +20,7 @@ Item {
id: staticImageC
Image {
anchors.fill: root
fillMode: Image.PreserveAspectCrop
sourceSize: parent
source: wallpaper.configuration.WallPath
}
Expand Down Expand Up @@ -74,34 +67,19 @@ Item {
}
}

PlasmaCore.SvgItem {
Image {
id: logo
source: wallpaper.configuration.IconPath
height: circle.height / 2
width: height * naturalSize.height/naturalSize.width
width: height
visible: !(wallpaper.configuration.HideLogo)

anchors.centerIn: circle
svg: PlasmaCore.Svg {
id: wallpaperSvg
//FIXME: Svg doesn't support relative paths
imagePath: "icons/fedora.svg" //Qt.resolvedUrl("x.svg").substring(7)
sourceSize {
height: circle.height / 2
width: height
}
elementId: "iconID"
anchors.centerIn: parent
}

// Image {
// id: logo
// source: wallpaper.configuration.IconPath
// height: circle.height / 2
// width: height
// visible: !(wallpaper.configuration.HideLogo)
// sourceSize {
// height: circle.height / 2
// width: height
// }
// anchors.centerIn: parent
// }

Timer {
interval: wallpaper.configuration.TimerValue * 1000
running: wallpaper.configuration.UseTimer
Expand Down
Binary file removed contents/ui/main.qmlc
Binary file not shown.

0 comments on commit dc16977

Please sign in to comment.