From 756b8a2a29c8adc1e2c52e80e04c3afc0dca011e Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 19 Jul 2021 23:31:27 +0900 Subject: [PATCH] Make thickness of clock hands configuable --- src/client/components/analog-clock.vue | 20 +++++++++++++++----- src/client/widgets/clock.vue | 13 ++++++++++++- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/client/components/analog-clock.vue b/src/client/components/analog-clock.vue index 8aa51898b..32b7ebb8e 100644 --- a/src/client/components/analog-clock.vue +++ b/src/client/components/analog-clock.vue @@ -5,7 +5,8 @@ :cy="5 - (Math.cos(angle) * (5 - graduationsPadding))" :r="i % 5 == 0 ? 0.125 : 0.05" :fill="i % 5 == 0 ? majorGraduationColor : minorGraduationColor" - :key="i"/> + :key="i" + /> + :stroke-width="thickness / 2" + /> + :stroke-width="thickness" + /> + :stroke-width="thickness" + />