diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-07-19 23:31:27 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-07-19 23:31:27 +0900 |
| commit | 756b8a2a29c8adc1e2c52e80e04c3afc0dca011e (patch) | |
| tree | e4a67b91fc2c57cd2c85d006b85f8934e67c67ad /src/client/widgets | |
| parent | Implement radio type for form dialog (diff) | |
| download | sharkey-756b8a2a29c8adc1e2c52e80e04c3afc0dca011e.tar.gz sharkey-756b8a2a29c8adc1e2c52e80e04c3afc0dca011e.tar.bz2 sharkey-756b8a2a29c8adc1e2c52e80e04c3afc0dca011e.zip | |
Make thickness of clock hands configuable
Diffstat (limited to 'src/client/widgets')
| -rw-r--r-- | src/client/widgets/clock.vue | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/client/widgets/clock.vue b/src/client/widgets/clock.vue index e0689a294f..d960c3809a 100644 --- a/src/client/widgets/clock.vue +++ b/src/client/widgets/clock.vue @@ -1,7 +1,7 @@ <template> <MkContainer :naked="props.transparent" :show-header="false"> <div class="vubelbmv"> - <MkAnalogClock class="clock"/> + <MkAnalogClock class="clock" :thickness="props.thickness"/> </div> </MkContainer> </template> @@ -20,6 +20,17 @@ const widget = define({ type: 'boolean', default: false, }, + thickness: { + type: 'radio', + default: 0.1, + options: [{ + value: 0.1, label: 'thin' + }, { + value: 0.2, label: 'medium' + }, { + value: 0.3, label: 'thick' + }] + } }) }); |