forked from Blendman974/faceclaw
Glanceboard has separately configurable font
This commit is contained in:
1 parent
def027943c
commit
4bc3551135
12 files changed
+187
-65
No files matched your search
@@ -166,6 +166,7 @@ function screenFixture() {
|
||||
const calendar = load('app/apps/calendar/calendar.ts', modules('../../'));
|
||||
const widget = load('app/apps/glanceboard/widgets/calendar-widget.ts', {
|
||||
...modules('../../../'), '../../calendar/calendar': calendar,
|
||||
'../glance-font': { glanceFont: { small: () => font, medium: () => font } },
|
||||
}, { ...f.clock, setInterval: fn => { timers.set(++nextTimer, fn); return nextTimer; }, clearInterval: id => timers.delete(id) });
|
||||
return { ...f, ...calendar, ...widget, timers, Image };
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ function paintWidget(smallHeight, largeHeight, height = 144, measurements = {})
|
||||
};
|
||||
const { NightscoutWidget } = load('app/apps/glanceboard/widgets/nightscout-widget.ts', {
|
||||
'../../../graphics/image': { GrayImage },
|
||||
'../../../graphics/ui-fonts': { getDefaultSmallFont: () => small, getDefaultLargeFont: () => ({ ...small, lineHeight: largeHeight }) },
|
||||
'../glance-font': { glanceFont: { small: () => small, large: () => ({ ...small, lineHeight: largeHeight }) } },
|
||||
'../../../graphics/textwrap': require('../.test-build/app/graphics/textwrap.js'),
|
||||
'../../../native/nightscout-bridge': { nightscoutBridge: { snapshot: () => state } },
|
||||
'../../../ui/dashboard-settings': { isNightscoutSettingsConfigured: () => true, loadNightscoutThresholds: () => limits },
|
||||
|
||||
Reference in new issue
Block a user