mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Calendar: events tooltip use fixed font with improved time formating
This commit is contained in:
@@ -108,7 +108,7 @@ PopupWindow {
|
||||
}
|
||||
|
||||
// Function to show tooltip
|
||||
function show(screen, target, tipText, customDirection, showDelay) {
|
||||
function show(screen, target, tipText, customDirection, showDelay, fontFamily) {
|
||||
if (!screen || !target || !tipText || tipText === "")
|
||||
return
|
||||
|
||||
@@ -139,6 +139,8 @@ PopupWindow {
|
||||
direction = "auto"
|
||||
}
|
||||
|
||||
tooltipText.family = fontFamily ? fontFamily : Settings.data.ui.fontDefault
|
||||
|
||||
// Start show timer
|
||||
showTimer.start()
|
||||
}
|
||||
@@ -404,6 +406,7 @@ PopupWindow {
|
||||
anchors.margins: root.padding
|
||||
text: root.text
|
||||
pointSize: Style.fontSizeS
|
||||
family: Settings.data.ui.fontFixed
|
||||
color: Color.mOnSurfaceVariant
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
Reference in New Issue
Block a user