refactor: remove CapsLockOSDContainer and KeyboardLayoutOSDContainer, and related show methods
This commit is contained in:
2 files changed
-12
No files matched your search
@@ -3,6 +3,4 @@ from .components import ( # noqa: F401
|
|||||||
AudioOSDContainer,
|
AudioOSDContainer,
|
||||||
BrightnessOSDContainer,
|
BrightnessOSDContainer,
|
||||||
MicrophoneOSDContainer,
|
MicrophoneOSDContainer,
|
||||||
CapsLockOSDContainer,
|
|
||||||
KeyboardLayoutOSDContainer,
|
|
||||||
)
|
)
|
||||||
@@ -5,8 +5,6 @@ from fabric.widgets.wayland import WaylandWindow as Window
|
|||||||
from .components import (
|
from .components import (
|
||||||
AudioOSDContainer,
|
AudioOSDContainer,
|
||||||
BrightnessOSDContainer,
|
BrightnessOSDContainer,
|
||||||
CapsLockOSDContainer,
|
|
||||||
KeyboardLayoutOSDContainer,
|
|
||||||
MicrophoneOSDContainer,
|
MicrophoneOSDContainer,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -27,8 +25,6 @@ class OSD(Box):
|
|||||||
"audio": AudioOSDContainer(window),
|
"audio": AudioOSDContainer(window),
|
||||||
"brightness": BrightnessOSDContainer(window),
|
"brightness": BrightnessOSDContainer(window),
|
||||||
"microphone": MicrophoneOSDContainer(window),
|
"microphone": MicrophoneOSDContainer(window),
|
||||||
"capslock": CapsLockOSDContainer(window),
|
|
||||||
"kb_layout": KeyboardLayoutOSDContainer(window),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set the OSD reference in containers
|
# Set the OSD reference in containers
|
||||||
@@ -52,12 +48,6 @@ class OSD(Box):
|
|||||||
def show_microphone_osd(self):
|
def show_microphone_osd(self):
|
||||||
self.show_container(self.containers.get("microphone"))
|
self.show_container(self.containers.get("microphone"))
|
||||||
|
|
||||||
def show_capslock_osd(self):
|
|
||||||
self.show_container(self.containers.get("capslock"))
|
|
||||||
|
|
||||||
def show_kb_layout_osd(self):
|
|
||||||
self.show_container(self.containers.get("kb_layout"))
|
|
||||||
|
|
||||||
|
|
||||||
class OSDWindow(Window):
|
class OSDWindow(Window):
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
|
|||||||
Reference in new issue
Block a user