feat(src/window/panel): rename panel title and update imports
Change title of create_control_window to "modus-controlcenter" and adjust Panel title to "mdous-bar". Update import ordering and remove redundant imports for clarity.
This commit is contained in:
2 files changed
+6
-7
No files matched your search
@@ -1,13 +1,13 @@
|
||||
from fabric.utils import logger
|
||||
from fabric.bluetooth import BluetoothClient
|
||||
from fabric.utils import logger
|
||||
from fabric.widgets.box import Box
|
||||
from fabric.widgets.button import Button
|
||||
from fabric.widgets.label import Label
|
||||
|
||||
from services.battery import Battery
|
||||
from services.network import NetworkClient
|
||||
from shared.window.battery_widget import BatteryControl
|
||||
from shared.window.applet_window import AppletWindow
|
||||
from shared.window.battery_widget import BatteryControl
|
||||
from utils.functions import format_duration, get_wifi_icon_for_strength
|
||||
from utils.roam import modus_service
|
||||
from utils.utils import setup_cursor_hover, svg_file
|
||||
@@ -20,7 +20,7 @@ def create_control_window(name_prefix, parent=None, pointing_to=None):
|
||||
parent=parent,
|
||||
pointing_to=pointing_to,
|
||||
layer="overlay",
|
||||
title="modus",
|
||||
title="modus-controlcenter",
|
||||
anchor="top right",
|
||||
margin="2px 10px 0px 0px",
|
||||
exclusivity="auto",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from fabric.utils import logger
|
||||
from fabric.system_tray.widgets import SystemTray
|
||||
from fabric.utils import logger
|
||||
from fabric.widgets.box import Box
|
||||
from fabric.widgets.button import Button
|
||||
from fabric.widgets.centerbox import CenterBox
|
||||
@@ -7,9 +7,8 @@ from fabric.widgets.datetime import DateTime
|
||||
from fabric.widgets.revealer import Revealer
|
||||
from fabric.widgets.wayland import WaylandWindow as Window
|
||||
|
||||
from services.config import on_config_change, get_config_all
|
||||
from services.config import get_config_all, on_config_change
|
||||
from services.modus import notification_service
|
||||
|
||||
from utils.roam import modus_service
|
||||
from utils.utils import setup_cursor_hover, svg_file
|
||||
from window.controlcenter.main import ModusControlCenter
|
||||
@@ -30,8 +29,8 @@ apply_enhanced_system_tray()
|
||||
class Panel(Window):
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(
|
||||
title="mdous-bar",
|
||||
name="bar",
|
||||
title="modus",
|
||||
layer="top",
|
||||
anchor="left top right",
|
||||
exclusivity="auto",
|
||||
|
||||
Reference in new issue
Block a user