refactor: remove microphone osd container
This commit is contained in:
2 files changed
-6
No files matched your search
@@ -2,5 +2,4 @@ from .main import OSDWindow # noqa: F401
|
||||
from .components import ( # noqa: F401
|
||||
AudioOSDContainer,
|
||||
BrightnessOSDContainer,
|
||||
MicrophoneOSDContainer,
|
||||
)
|
||||
@@ -5,7 +5,6 @@ from fabric.widgets.wayland import WaylandWindow as Window
|
||||
from .components import (
|
||||
AudioOSDContainer,
|
||||
BrightnessOSDContainer,
|
||||
MicrophoneOSDContainer,
|
||||
)
|
||||
|
||||
|
||||
@@ -24,7 +23,6 @@ class OSD(Box):
|
||||
self.containers = {
|
||||
"audio": AudioOSDContainer(window),
|
||||
"brightness": BrightnessOSDContainer(window),
|
||||
"microphone": MicrophoneOSDContainer(window),
|
||||
}
|
||||
|
||||
# Set the OSD reference in containers
|
||||
@@ -45,9 +43,6 @@ class OSD(Box):
|
||||
def show_brightness_osd(self):
|
||||
self.show_container(self.containers.get("brightness"))
|
||||
|
||||
def show_microphone_osd(self):
|
||||
self.show_container(self.containers.get("microphone"))
|
||||
|
||||
|
||||
class OSDWindow(Window):
|
||||
def __init__(self, **kwargs):
|
||||
|
||||
Reference in new issue
Block a user