Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Plasma Workspace
Commits
29e0bf56
Commit
29e0bf56
authored
Nov 16, 2020
by
Tomaz Canabrava
Committed by
Tomaz Canabrava
Nov 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Month name, fix positioning with small and big calendars
parent
81adf8e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
6 deletions
+33
-6
applets/calendar/package/contents/ui/main.qml
applets/calendar/package/contents/ui/main.qml
+33
-6
No files found.
applets/calendar/package/contents/ui/main.qml
View file @
29e0bf56
...
...
@@ -57,18 +57,44 @@ Item {
PlasmaCore.IconItem
{
anchors.fill
:
parent
source
:
Qt
.
resolvedUrl
(
"
../images/mini-calendar.svgz
"
)
PlasmaComponents3.Label
{
anchors
{
fill
:
parent
margins
:
Math
.
round
(
parent
.
width
*
0.1
)
id
:
monthLabel
y
:
parent
.
y
+
parent
.
height
*
0.05
;
x
:
0
width
:
parent
.
width
height
:
parent
.
height
*
0.2
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignBottom
fontSizeMode
:
Text
.
Fit
minimumPointSize
:
1
color
:
"
black
"
text
:
{
var
d
=
new
Date
(
dataSource
.
data
.
Local
.
DateTime
);
return
plasmoid
.
nativeInterface
.
monthName
(
d
);
}
visible
:
parent
.
width
>
50
}
PlasmaComponents3.Label
{
id
:
dayLabel
y
:
monthLabel
.
y
+
monthLabel
.
height
x
:
0
width
:
parent
.
width
height
:
parent
.
height
*
0.6
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
verticalAlignment
:
Text
.
AlignTop
minimumPointSize
:
1
font.pixelSize
:
1000
fontSizeMode
:
Text
.
Fit
color
:
"
black
"
minimumPointSize
:
theme
.
smallestFont
.
pointSize
text
:
{
var
d
=
new
Date
(
dataSource
.
data
.
Local
.
DateTime
)
var
format
=
plasmoid
.
configuration
.
compactDisplay
...
...
@@ -79,9 +105,10 @@ Item {
return
Qt
.
formatDate
(
d
,
format
)
}
fontSizeMode
:
Text
.
Fit
}
}
}
Plasmoid.fullRepresentation
:
Item
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment