diff --git a/plasmoid/contents/code/fallback.css b/plasmoid/contents/code/fallback.css --- a/plasmoid/contents/code/fallback.css +++ b/plasmoid/contents/code/fallback.css @@ -2,4 +2,6 @@ object-fit: fill; width: 100% !important; height: 100% !important; + max-width: 100% !important; + max-height: 100% !important; } diff --git a/plasmoid/contents/code/startservice.sh b/plasmoid/contents/code/startservice.sh --- a/plasmoid/contents/code/startservice.sh +++ b/plasmoid/contents/code/startservice.sh @@ -1,5 +1,5 @@ #!/bin/bash -cd /home/$USER/mycroft-core*/ +cd /home/$USER/mycroft-core/ ./start-mycroft.sh all paplay /usr/share/sounds/freedesktop/stereo/dialog-error.oga diff --git a/plasmoid/contents/code/stopservice.sh b/plasmoid/contents/code/stopservice.sh --- a/plasmoid/contents/code/stopservice.sh +++ b/plasmoid/contents/code/stopservice.sh @@ -1,5 +1,5 @@ #!/bin/bash -cd /home/$USER/mycroft-core*/ +cd /home/$USER/mycroft-core/ ./stop-mycroft.sh paplay /usr/share/sounds/freedesktop/stereo/dialog-error.oga diff --git a/plasmoid/contents/ui/DashCryptoDelegate.qml b/plasmoid/contents/ui/DashCryptoDelegate.qml --- a/plasmoid/contents/ui/DashCryptoDelegate.qml +++ b/plasmoid/contents/ui/DashCryptoDelegate.qml @@ -26,10 +26,20 @@ import org.kde.plasma.components 2.0 as PlasmaComponents import QtGraphicalEffects 1.0 -Item { +Rectangle { id: dashDelegateItm - height: units.gridUnit * 2 - width: cbwidth + height: units.gridUnit * 2.5 + width: cbwidth - units.gridUnit * 0.50 + color: theme.backgroundColor + layer.enabled: true + layer.effect: DropShadow { + horizontalOffset: 0 + verticalOffset: 1 + radius: 10 + samples: 32 + spread: 0.1 + color: Qt.rgba(0, 0, 0, 0.3) + } Item { id: contentdlgtitem diff --git a/plasmoid/contents/ui/DashNewsDelegate.qml b/plasmoid/contents/ui/DashNewsDelegate.qml --- a/plasmoid/contents/ui/DashNewsDelegate.qml +++ b/plasmoid/contents/ui/DashNewsDelegate.qml @@ -26,14 +26,24 @@ import org.kde.plasma.components 2.0 as PlasmaComponents import QtGraphicalEffects 1.0 -Item { +Rectangle { id: dashDelegateItm height: skillTopRowLayout.height + dashinner.height + dashItemSrcMeta.height + units.gridUnit * 0.5 - width: cbwidth + width: cbwidth - units.gridUnit * 0.50 + color: theme.backgroundColor + layer.enabled: true + layer.effect: DropShadow { + horizontalOffset: 0 + verticalOffset: 1 + radius: 10 + samples: 32 + spread: 0.1 + color: Qt.rgba(0, 0, 0, 0.3) + } Item { id: contentdlgtitem - width: parent.width + width: parent.width - units.gridUnit * 0.05 height: parent.height Item { @@ -53,6 +63,23 @@ font.bold: true; text: newsTitle color: theme.textColor + + MouseArea { + anchors.fill: parent + hoverEnabled: true + + onEntered: { + dashHeader.color = theme.linkColor + dashHeader.font.underline = true + } + onExited: { + dashHeader.color = theme.textColor + dashHeader.font.underline = false + } + onClicked: { + Qt.openUrlExternally(newsURL) + } + } } PlasmaCore.SvgItem { @@ -161,6 +188,7 @@ id: dashItemSrcMeta implicitWidth: dashItemSrcName.implicitWidth + units.gridUnit * 1 anchors.left: parent.left + anchors.leftMargin: units.gridUnit * 0.05 anchors.top: nwsseprator2.bottom anchors.topMargin: 1 color: theme.linkColor @@ -172,14 +200,31 @@ anchors.centerIn: parent color: theme.textColor ; text: newsSource + + MouseArea { + anchors.fill: parent + hoverEnabled: true + + onEntered: { + dashItemSrcMeta.color = theme.textColor + dashItemSrcName.color = theme.backgroundColor + } + onExited: { + dashItemSrcMeta.color = theme.linkColor + dashItemSrcName.color = theme.textColor + } + onClicked: { + Qt.openUrlExternally("https://" + newsSource) + } + } } } Text { id: dashItemPwrBy anchors.top: nwsseprator2.bottom anchors.topMargin: 1 - wrapMode: Text.Wrop; + wrapMode: Text.Wrap; anchors.right: parent.right color: theme.textColor; font.pixelSize: 10 diff --git a/plasmoid/contents/ui/DashWeatherDelegate.qml b/plasmoid/contents/ui/DashWeatherDelegate.qml --- a/plasmoid/contents/ui/DashWeatherDelegate.qml +++ b/plasmoid/contents/ui/DashWeatherDelegate.qml @@ -25,10 +25,20 @@ import org.kde.plasma.plasmoid 2.0 import org.kde.plasma.components 2.0 as PlasmaComponents -Item { +Rectangle { id: dashDelegateItm - height: units.gridUnit * 4 - width: cbwidth + height: units.gridUnit * 5.25 + width: cbwidth - units.gridUnit * 0.50 + color: theme.backgroundColor + layer.enabled: true + layer.effect: DropShadow { + horizontalOffset: 0 + verticalOffset: 1 + radius: 10 + samples: 32 + spread: 0.1 + color: Qt.rgba(0, 0, 0, 0.3) + } Item { id: contentdlgtitem diff --git a/plasmoid/contents/ui/DisclaimerCardDelegate.qml b/plasmoid/contents/ui/DisclaimerCardDelegate.qml --- a/plasmoid/contents/ui/DisclaimerCardDelegate.qml +++ b/plasmoid/contents/ui/DisclaimerCardDelegate.qml @@ -26,10 +26,20 @@ import org.kde.plasma.components 2.0 as PlasmaComponents import QtGraphicalEffects 1.0 -Item { +Rectangle { id: dashDelegateItm - height: units.gridUnit * 3 - width: cbwidth + height: units.gridUnit * 4.75 + width: cbwidth - units.gridUnit * 0.50 + color: theme.backgroundColor + layer.enabled: true + layer.effect: DropShadow { + horizontalOffset: 0 + verticalOffset: 1 + radius: 10 + samples: 32 + spread: 0.1 + color: Qt.rgba(0, 0, 0, 0.3) + } Item { id: contentdlgtitem @@ -39,6 +49,7 @@ Item { id: skillTopRowLayout anchors.top: parent.top + anchors.topMargin: units.gridUnit * 0.25 anchors.left: parent.left anchors.right: parent.right implicitHeight: dashHeader.height @@ -101,7 +112,7 @@ id: nwsseprator width: parent.width anchors.top: skillTopRowLayout.bottom - anchors.topMargin: 1 + anchors.topMargin: units.gridUnit * 0.25 height: 2 color: theme.linkColor }