From 025515870c3c1cd47d8719730707668f67acee65 Mon Sep 17 00:00:00 2001 From: DonnerWolfBach <68754523+DonnerWolfBach@users.noreply.github.com> Date: Mon, 4 Aug 2025 17:15:56 +0200 Subject: [PATCH 1/2] fixed microphone letters in mode_indicator for windows --- plugin/mode_indicator/mode_indicator.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugin/mode_indicator/mode_indicator.py b/plugin/mode_indicator/mode_indicator.py index 403148ba07..9a6cba79b2 100644 --- a/plugin/mode_indicator/mode_indicator.py +++ b/plugin/mode_indicator/mode_indicator.py @@ -129,7 +129,13 @@ def on_draw(c: SkiaCanvas): Point2d(x, y), radius, [color_text, color_text] ) - text = current_microphone[:2] + text = current_microphone + # on windows the current_microphone string always starts with "microphone (..." + if(app.platform == "windows"): + text = text.split("(")[1] + + text = text[:2] + c.paint.style = c.paint.Style.FILL c.paint.color = color_text text_rect = c.paint.measure_text(text)[1] From bbb3a4aa77a360b68a4f75a189d2eb3cf59a7629 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Aug 2025 15:18:50 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- plugin/mode_indicator/mode_indicator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/mode_indicator/mode_indicator.py b/plugin/mode_indicator/mode_indicator.py index 9a6cba79b2..3f0802daa5 100644 --- a/plugin/mode_indicator/mode_indicator.py +++ b/plugin/mode_indicator/mode_indicator.py @@ -131,11 +131,11 @@ def on_draw(c: SkiaCanvas): text = current_microphone # on windows the current_microphone string always starts with "microphone (..." - if(app.platform == "windows"): + if app.platform == "windows": text = text.split("(")[1] text = text[:2] - + c.paint.style = c.paint.Style.FILL c.paint.color = color_text text_rect = c.paint.measure_text(text)[1]