1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-17 03:02:05 -04:00

feat(calendar): add show week number option (#1990)

* increase DankDashPopout width to accommodate week number column

* add getWeekNumber function

* add week number column

* add showWeekNumber SettingsData

* add showWeekNumber SettingsSpec

* make dash popout width changes reponsively to showWeekNumber option

* complete and cleanup

* fix typo

* fix typo
This commit is contained in:
Triệu Kha
2026-03-16 22:06:21 +07:00
committed by GitHub
parent ddb079b62d
commit e18587c471
9 changed files with 200 additions and 97 deletions

View File

@@ -12,7 +12,7 @@ DankPopout {
property var triggerScreen: null
property int currentTabIndex: 0
popupWidth: 700
popupWidth: SettingsData.showWeekNumber ? 736 : 700
popupHeight: contentLoader.item ? contentLoader.item.implicitHeight : 500
triggerWidth: 80
screen: triggerScreen
@@ -168,6 +168,7 @@ DankPopout {
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
implicitWidth: Math.max(700, pages.implicitWidth + (Theme.spacingM * 2))
implicitHeight: contentColumn.height + Theme.spacingM * 2
color: "transparent"
focus: true
@@ -316,6 +317,7 @@ DankPopout {
id: pages
width: parent.width
height: implicitHeight
implicitWidth: currentItem && currentItem.implicitWidth > 0 ? currentItem.implicitWidth : (700 - Theme.spacingM * 2)
implicitHeight: {
if (root.currentTabIndex === 0)
return overviewLoader.item?.implicitHeight ?? 410;