From 9911966fe7c762320c7e19838d36ccb2f948f3e7 Mon Sep 17 00:00:00 2001 From: Jones Date: Wed, 16 Jul 2025 17:58:31 +0930 Subject: [PATCH 1/4] feat: apply 12 hour time while event is being made and give rounded corners while creating new event --- src/css/injected.scss | 4 ++++ src/plugins/built-in/timetable/index.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/css/injected.scss b/src/css/injected.scss index 19c011f9..5ba2229f 100644 --- a/src/css/injected.scss +++ b/src/css/injected.scss @@ -1987,6 +1987,10 @@ div.entry.new { border-radius: 4px; } +div.liveEntry { + border-radius: 4px; +} + .uiFileHandler .uiButton { border-radius: 32px !important; color: var(--text-primary) !important; diff --git a/src/plugins/built-in/timetable/index.ts b/src/plugins/built-in/timetable/index.ts index 53f62d3f..b1a81dc1 100644 --- a/src/plugins/built-in/timetable/index.ts +++ b/src/plugins/built-in/timetable/index.ts @@ -67,7 +67,7 @@ async function handleTimetable(): Promise { // Convert time format if needed if (settingsState.timeFormat == "12") { - const times = document.querySelectorAll(".timetablepage .times .time"); + const times = document.querySelectorAll(".timetablepage .times .time, .timetablepage .liveentry, .timetablepage .entry.new"); for (const time of times) { if (!time.textContent) continue; time.textContent = convertTo12HourFormat(time.textContent, true); From 10f3c1e942da898c33d31733de5e211978a50b61 Mon Sep 17 00:00:00 2001 From: Jones Date: Wed, 16 Jul 2025 18:07:57 +0930 Subject: [PATCH 2/4] fix: remove ID that wont work --- src/plugins/built-in/timetable/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/built-in/timetable/index.ts b/src/plugins/built-in/timetable/index.ts index b1a81dc1..849b0f51 100644 --- a/src/plugins/built-in/timetable/index.ts +++ b/src/plugins/built-in/timetable/index.ts @@ -67,7 +67,7 @@ async function handleTimetable(): Promise { // Convert time format if needed if (settingsState.timeFormat == "12") { - const times = document.querySelectorAll(".timetablepage .times .time, .timetablepage .liveentry, .timetablepage .entry.new"); + const times = document.querySelectorAll(".timetablepage .times .time, .timetablepage .entry.new"); for (const time of times) { if (!time.textContent) continue; time.textContent = convertTo12HourFormat(time.textContent, true); From 5dfd7388489771486f00f3b1881bc88366b6530e Mon Sep 17 00:00:00 2001 From: Jones Date: Thu, 17 Jul 2025 20:16:53 +0930 Subject: [PATCH 3/4] restyle motd --- src/css/injected.scss | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/src/css/injected.scss b/src/css/injected.scss index 5ba2229f..d68de294 100644 --- a/src/css/injected.scss +++ b/src/css/injected.scss @@ -250,6 +250,10 @@ html { grid-template-columns: repeat(autofit, minmax(200px, 400px)) !important; background: unset; +section.message { + display: none !important; +} + // TODO: Make this only opacity 0 when the animation will be played to stop a flash of the original > section { border-radius: 16px !important; @@ -2102,10 +2106,33 @@ div.bar.flat { background: var(--background-secondary) !important; } - .dashlet-motd { - .message { - font-size: 24px !important; - } +.dashlet-motd { + padding: 7px !important; + .message { + font-size: 24px !important; + border-radius: 12px !important; + border: none !important; + box-shadow: none !important; + color: #fff !important; + padding: 16px !important; + margin: 0 !important; + height: 100% !important; + max-height: none !important; + display: flex !important; + align-items: flex-start !important; + overflow: hidden !important; + } +} + + + .cke_toolbox > .cke_toolbar > .cke_toolgroup > .cke_button { + background: var(--background-secondary) !important; + color: var(--text-primary) !important; + } + + .cke_toolbox > .cke_toolbar > .cke_combo > .cke_combo_button { + background: var(--background-secondary) !important; + color: var(--text-primary) !important; } } From 5b94c2c9b5145fc1ee436ab098cdaa36473a60c5 Mon Sep 17 00:00:00 2001 From: Jones Date: Fri, 18 Jul 2025 16:11:24 +0930 Subject: [PATCH 4/4] fix: put back message box on dashboard --- src/css/injected.scss | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/css/injected.scss b/src/css/injected.scss index d68de294..19e16337 100644 --- a/src/css/injected.scss +++ b/src/css/injected.scss @@ -250,10 +250,6 @@ html { grid-template-columns: repeat(autofit, minmax(200px, 400px)) !important; background: unset; -section.message { - display: none !important; -} - // TODO: Make this only opacity 0 when the animation will be played to stop a flash of the original > section { border-radius: 16px !important; @@ -3973,4 +3969,4 @@ h2.home-subtitle { margin: 20px; font-size: 20px; font-weight: 400; -} \ No newline at end of file +}