()
| 6797 | // src/settings/features/progressBarHeight.ts |
| 6798 | var PROGRESS_BAR_HEIGHT_KEY = "glowify-progress-bar-height"; |
| 6799 | var PROGRESS_BAR_HEIGHT_DEFAULT = 6; |
| 6800 | var PROGRESS_BAR_COMPAT_KEY = "glowify-progress-bar-compat"; |
| 6801 | function isProgressBarCompat() { |
| 6802 | return readLS(PROGRESS_BAR_COMPAT_KEY, "off") === "on"; |
| 6803 | } |
| 6804 | function applyCss5(px) { |
| 6805 | updateStyle( |
| 6806 | "glowify-progress-bar-height", |
| 6807 | isProgressBarCompat() ? "" : `.x-progressBar-progressBarBg, .x-progressBar-sliderArea { --progress-bar-height: ${px}px !important; height: ${px}px !important; }` |
| 6808 | ); |
| 6809 | } |
| 6810 | function setProgressBarHeight(px) { |
| 6811 | localStorage.setItem(PROGRESS_BAR_HEIGHT_KEY, String(px)); |
| 6812 | applyCss5(px); |
| 6813 | } |
| 6814 | function ensureProgressBarHeightApplied() { |
| 6815 | applyCss5(readNum(PROGRESS_BAR_HEIGHT_KEY, PROGRESS_BAR_HEIGHT_DEFAULT)); |
| 6816 | } |
no outgoing calls
no test coverage detected