mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
Fixed avatar icon smoothness, fixed calendar spacing.
This commit is contained in:
parent
ccbd602d6e
commit
513ec11c42
2 changed files with 28 additions and 6 deletions
|
@ -106,13 +106,15 @@ PlasmaCore.Dialog {
|
|||
//y: 0
|
||||
|
||||
// The "sensible" values
|
||||
property int _minimumWidth: (showAgenda ? agendaViewWidth : 0) + monthViewWidth
|
||||
property int _minimumHeight: PlasmaCore.Units.gridUnit * 12
|
||||
|
||||
//Layout.preferredWidth: _minimumWidth
|
||||
//Layout.preferredHeight: _minimumHeight * 1.5
|
||||
|
||||
readonly property bool showAgenda: PlasmaCalendar.EventPluginsManager.enabledPlugins.length > 0
|
||||
|
||||
property int _minimumWidth: (showAgenda ? agendaViewWidth : units.largeSpacing) + monthViewWidth
|
||||
property int _minimumHeight: PlasmaCore.Units.gridUnit * 12
|
||||
|
||||
readonly property int agendaViewWidth: _minimumHeight
|
||||
readonly property int monthViewWidth: monthView.showWeekNumbers ? Math.round(_minimumHeight * 1.25) : Math.round(_minimumHeight * 1.125)
|
||||
|
||||
|
|
|
@ -38,6 +38,9 @@ import QtGraphicalEffects 1.0
|
|||
import org.kde.kquickcontrolsaddons 2.0
|
||||
import org.kde.plasma.private.quicklaunch 1.0
|
||||
|
||||
import org.kde.kirigami 2.13 as Kirigami
|
||||
import org.kde.kquickcontrolsaddons 2.0 as KQuickAddons
|
||||
|
||||
|
||||
import QtQuick.Dialogs 1.2
|
||||
|
||||
|
@ -717,7 +720,7 @@ PlasmaCore.Dialog {
|
|||
|
||||
}
|
||||
PlasmaCore.IconItem {
|
||||
id: imgAuthor
|
||||
id: imgAuthorIcon
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
@ -726,15 +729,32 @@ PlasmaCore.Dialog {
|
|||
anchors.leftMargin: 2
|
||||
anchors.rightMargin: 2
|
||||
anchors.bottomMargin: 2
|
||||
source: kuser.faceIconUrl.toString() || "user-identity"
|
||||
source: "user-identity"
|
||||
smooth: true
|
||||
visible: false
|
||||
usesPlasmaTheme: false
|
||||
|
||||
}
|
||||
|
||||
Image {
|
||||
id: imgAuthor
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.topMargin: units.smallSpacing*2
|
||||
anchors.leftMargin: units.smallSpacing*2
|
||||
anchors.rightMargin: units.smallSpacing*2
|
||||
anchors.bottomMargin: units.smallSpacing*2
|
||||
source: kuser.faceIconUrl.toString()
|
||||
smooth: true
|
||||
mipmap: true
|
||||
visible: false
|
||||
|
||||
|
||||
}
|
||||
OpacityMask {
|
||||
anchors.fill: imgAuthor
|
||||
source: imgAuthor
|
||||
source: (kuser.faceIconUrl.toString() === "") ? imgAuthorIcon : imgAuthor;
|
||||
maskSource: Rectangle {
|
||||
width: imgAuthor.width
|
||||
height: imgAuthor.height
|
||||
|
|
Loading…
Reference in a new issue