Commit 199728d6 authored by Marco Martin's avatar Marco Martin
Browse files

enable custom background for some plasmoids

plasmaoids where it work can have now the background disabled and
replaced with a drop shadow (and the text turns to white
parent e48e4bee
......@@ -70,4 +70,4 @@ Item {
today: dataSource.data["Local"]["DateTime"]
}
}
\ No newline at end of file
}
......@@ -28,6 +28,7 @@ Item {
readonly property int implicitWidth: units.gridUnit * 40
readonly property int implicitHeight: units.gridUnit * 15
Plasmoid.backgroundHints: PlasmaCore.Types.DefaultBackground | PlasmaCore.Types.ConfigurableBackground
Plasmoid.switchWidth: {
if (centerLayout.comicData.image) {
return Math.max(minimumWidth, Math.min(centerLayout.comicData.image.nativeWidth * 0.6, implicitWidth));
......
......@@ -38,6 +38,8 @@ Item {
Plasmoid.toolTipMainText: Qt.formatTime(currentDateTime)
Plasmoid.toolTipSubText: Qt.formatDate(currentDateTime, Qt.locale().dateFormat(Locale.LongFormat))
Plasmoid.backgroundHints: PlasmaCore.Types.ShadowBackground | PlasmaCore.Types.ConfigurableBackground
PlasmaCore.DataSource {
id: dataSource
engine: "time"
......
......@@ -45,6 +45,7 @@ Item {
Layout.preferredHeight: LayoutManager.preferredHeight()
Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
Plasmoid.backgroundHints: PlasmaCore.Types.DefaultBackground | PlasmaCore.Types.ConfigurableBackground
DragAndDrop.DropArea {
anchors.fill: parent
......
......@@ -21,6 +21,8 @@
import QtQuick 2.2
import QtQuick.Layouts 1.1
import org.kde.plasma.core 2.0 as PlasmaCore
Item {
id: barMonitor
......@@ -37,7 +39,7 @@ Item {
radius: 3
opacity: .4
border {
color: theme.textColor
color: PlasmaCore.ColorScope.textColor
width: 1
}
}
......
......@@ -21,6 +21,8 @@
import QtQuick 2.0
import QtQuick.Layouts 1.1
import org.kde.plasma.core 2.0 as PlasmaCore
Item {
property alias colors: canvas.colors
property alias proportions: canvas.proportions
......@@ -74,7 +76,7 @@ Item {
// Draw border
ctx.fillStyle = "transparent"
ctx.strokeStyle = theme.textColor
ctx.strokeStyle = PlasmaCore.ColorScope.textColor
ctx.lineWidth = canvas.lineWidth
ctx.globalAlpha = .4
ctx.beginPath();
......
......@@ -31,6 +31,8 @@ import org.kde.plasma.plasmoid 2.0
Item {
id: main
Plasmoid.backgroundHints: PlasmaCore.Types.DefaultBackground | PlasmaCore.Types.ConfigurableBackground
readonly property double maxCpuLoad: 100.0
readonly property int borderWidth: 1
readonly property int borderRounding: 3
......
......@@ -28,6 +28,8 @@ Item {
id: root;
readonly property variant predefinedTimers: plasmoid.configuration.predefinedTimers;
Plasmoid.backgroundHints: PlasmaCore.Types.ShadowBackground | PlasmaCore.Types.ConfigurableBackground
property int seconds : restoreToSeconds(plasmoid.configuration.running, plasmoid.configuration.savedAt, plasmoid.configuration.seconds);
// show notification on timer completion (default: enabled)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment