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
|
from .components import ( # noqa: F401
|
||||||
AudioOSDContainer,
|
AudioOSDContainer,
|
||||||
BrightnessOSDContainer,
|
BrightnessOSDContainer,
|
||||||
MicrophoneOSDContainer,
|
|
||||||
)
|
)
|
||||||
@@ -5,7 +5,6 @@ from fabric.widgets.wayland import WaylandWindow as Window
|
|||||||
from .components import (
|
from .components import (
|
||||||
AudioOSDContainer,
|
AudioOSDContainer,
|
||||||
BrightnessOSDContainer,
|
BrightnessOSDContainer,
|
||||||
MicrophoneOSDContainer,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -24,7 +23,6 @@ class OSD(Box):
|
|||||||
self.containers = {
|
self.containers = {
|
||||||
"audio": AudioOSDContainer(window),
|
"audio": AudioOSDContainer(window),
|
||||||
"brightness": BrightnessOSDContainer(window),
|
"brightness": BrightnessOSDContainer(window),
|
||||||
"microphone": MicrophoneOSDContainer(window),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set the OSD reference in containers
|
# Set the OSD reference in containers
|
||||||
@@ -45,9 +43,6 @@ class OSD(Box):
|
|||||||
def show_brightness_osd(self):
|
def show_brightness_osd(self):
|
||||||
self.show_container(self.containers.get("brightness"))
|
self.show_container(self.containers.get("brightness"))
|
||||||
|
|
||||||
def show_microphone_osd(self):
|
|
||||||
self.show_container(self.containers.get("microphone"))
|
|
||||||
|
|
||||||
|
|
||||||
class OSDWindow(Window):
|
class OSDWindow(Window):
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
|
|||||||
Reference in new issue
Block a user