Mercurial > libervia-backend
diff libervia/cli/call_gui.py @ 4322:00837fa13e5a default tip @
tools (common/template), cli (call/gui): use font-awesome instead of fontello:
following change in Libervia Media, code has been updated to use font-awesome now instead
of fontello.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 26 Oct 2024 22:42:17 +0200 |
parents | 0d7bb4df2343 |
children |
line wrap: on
line diff
--- a/libervia/cli/call_gui.py Mon Sep 30 14:15:47 2024 +0200 +++ b/libervia/cli/call_gui.py Sat Oct 26 22:42:17 2024 +0200 @@ -205,7 +205,7 @@ async def run(cls, parent, call_data): """Run PyQt loop and show the app""" media_dir = Path(await parent.host.bridge.config_get("", "media_dir")) - icons_path = media_dir / "fonts/fontello/svg" + icons_path = media_dir / "fonts/fontawesome/svgs/solid" app = QApplication([]) av_call_gui = cls(parent.host, icons_path) av_call_gui.show() @@ -255,8 +255,8 @@ fullscreen_layout.addStretch() self.fullscreen_btn = QPushButton("", self) self.fullscreen_btn.setFixedSize(BUTTON_SIZE) - self.fullscreen_icon_normal = QIcon(str(self.icons_path / "resize-full.svg")) - self.fullscreen_icon_fullscreen = QIcon(str(self.icons_path / "resize-small.svg")) + self.fullscreen_icon_normal = QIcon(str(self.icons_path / "maximize.svg")) + self.fullscreen_icon_fullscreen = QIcon(str(self.icons_path / "minimize.svg")) self.fullscreen_btn.setIcon(self.fullscreen_icon_normal) self.fullscreen_btn.setIconSize(ICON_SIZE) self.fullscreen_btn.clicked.connect(self.toggle_fullscreen) @@ -266,13 +266,13 @@ self.control_buttons_layout = QHBoxLayout() self.control_buttons_layout.setSpacing(40) self.toggle_video_btn = cast( - ActivableButton, self.add_control_button("videocam", self.toggle_video) + ActivableButton, self.add_control_button("video", self.toggle_video) ) self.toggle_audio_btn = cast( - ActivableButton, self.add_control_button("volume-up", self.toggle_audio) + ActivableButton, self.add_control_button("volume-high", self.toggle_audio) ) self.share_desktop_btn = cast( - ActivableButton, self.add_control_button("desktop", self.share_desktop) + ActivableButton, self.add_control_button("display", self.share_desktop) ) self.share_desktop_btn.deactivated_colour = "#47c68e" self.share_desktop_btn.activated_colour = "#f24468"