From e9541be82ec87479e2c4a670bac90b5a1c76ebeb Mon Sep 17 00:00:00 2001 From: Sassan Haradji Date: Fri, 2 Aug 2024 16:34:53 +0400 Subject: [PATCH] fix(core): change the power-off menu item icon - closes #151 --- CHANGELOG.md | 1 + scripts/Dockerfile.dev | 2 +- .../test_core/app_runs_and_exits/store-desktop-000.jsonc | 2 +- .../results/test_core/app_runs_and_exits/store-rpi-000.jsonc | 2 +- .../test_services/all_services_register/store-desktop-000.jsonc | 2 +- .../test_services/all_services_register/store-rpi-000.jsonc | 2 +- ubo_app/store/core/_menus.py | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 372a3be8..beb69815 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - fix(audio): add a recovery mechanism for audio service to rebind the sound card if it is not available - closes #83 - fix(voice): remove the gap between sentences +- fix(core): change the power-off menu item icon - closes #151 ## Version 0.15.5 diff --git a/scripts/Dockerfile.dev b/scripts/Dockerfile.dev index 74f2b683..91e76407 100644 --- a/scripts/Dockerfile.dev +++ b/scripts/Dockerfile.dev @@ -2,7 +2,7 @@ FROM ubuntu:mantic ARG DEBIAN_FRONTEND=noninteractive RUN apt -y update -RUN apt -y install gcc curl git libasound2-dev libcap-dev libegl1 libgl1 libmtdev1 libzbar0 python3 python3-dev file --no-install-recommends --no-install-suggests +RUN apt -y install gcc curl git libasound2-dev libcap-dev libegl1 libgl1 libmtdev1 libzbar0 python3 python3-dev file ca-certificates --no-install-recommends --no-install-suggests RUN curl -sSL https://install.python-poetry.org | python3 - ENV PATH="${PATH}:/root/.local/bin" WORKDIR /ubo-app diff --git a/tests/integration/results/test_core/app_runs_and_exits/store-desktop-000.jsonc b/tests/integration/results/test_core/app_runs_and_exits/store-desktop-000.jsonc index a2b9c1a6..2c0adbf0 100644 --- a/tests/integration/results/test_core/app_runs_and_exits/store-desktop-000.jsonc +++ b/tests/integration/results/test_core/app_runs_and_exits/store-desktop-000.jsonc @@ -256,7 +256,7 @@ 1, 1 ], - "icon": "󰤂", + "icon": "󰐥", "is_short": false, "key": null, "label": "Power off", diff --git a/tests/integration/results/test_core/app_runs_and_exits/store-rpi-000.jsonc b/tests/integration/results/test_core/app_runs_and_exits/store-rpi-000.jsonc index 85114346..9ee3b71c 100644 --- a/tests/integration/results/test_core/app_runs_and_exits/store-rpi-000.jsonc +++ b/tests/integration/results/test_core/app_runs_and_exits/store-rpi-000.jsonc @@ -256,7 +256,7 @@ 1, 1 ], - "icon": "󰤂", + "icon": "󰐥", "is_short": false, "key": null, "label": "Power off", diff --git a/tests/integration/results/test_services/all_services_register/store-desktop-000.jsonc b/tests/integration/results/test_services/all_services_register/store-desktop-000.jsonc index 3b267e3b..2aa64ab5 100644 --- a/tests/integration/results/test_services/all_services_register/store-desktop-000.jsonc +++ b/tests/integration/results/test_services/all_services_register/store-desktop-000.jsonc @@ -675,7 +675,7 @@ 1, 1 ], - "icon": "󰤂", + "icon": "󰐥", "is_short": false, "key": null, "label": "Power off", diff --git a/tests/integration/results/test_services/all_services_register/store-rpi-000.jsonc b/tests/integration/results/test_services/all_services_register/store-rpi-000.jsonc index d0352681..f3254b19 100644 --- a/tests/integration/results/test_services/all_services_register/store-rpi-000.jsonc +++ b/tests/integration/results/test_services/all_services_register/store-rpi-000.jsonc @@ -675,7 +675,7 @@ 1, 1 ], - "icon": "󰤂", + "icon": "󰐥", "is_short": false, "key": null, "label": "Power off", diff --git a/ubo_app/store/core/_menus.py b/ubo_app/store/core/_menus.py index 32ef3046..154a2a32 100644 --- a/ubo_app/store/core/_menus.py +++ b/ubo_app/store/core/_menus.py @@ -172,7 +172,7 @@ def notifications_color(unread_count: int) -> str: ActionItem( label='Power off', action=lambda: dispatch(PowerOffAction()), - icon='󰤂', + icon='󰐥', ), ], ),