changed name to modus

This commit is contained in:
sankalp committed 2025-02-02 16:41:29 +05:45
1 parent 7472e91736
commit 1db834448f
60 files changed
+848 -44

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ exec-once = $scriptsDir/Polkit.sh
# startup apps
exec-once = cd ~/dotfiles/karya && python main.py
exec-once = cd ~/dotfiles/modus && python main.py
exec-once = wl-gammarelay-rs &
exec-once = blueman-applet &
exec-once = nm-applet --indicator &
+2 -2
View File
@@ -7,7 +7,7 @@ $mainMod = SUPER
$scriptsDir = $HOME/dotfiles/hypr/scripts
$RunCMD = $scriptsDir/RunCMD.sh
$fabric = fabric-cli exec karya
$fabric = fabric-cli exec modus
# Testing
bind = Alt, f12, exec, notify-send 'Test notification' "Here's a really long message to test truncation and wrapping\nYou can middle click or flick this notification to dismiss it!" -a 'terminal' -A "Test1=I got it!" -A "Test2=Another action"
@@ -28,7 +28,7 @@ bind = SHIFT ALT,W, exec, python -O $scriptsDir/wallpaper.py -R
bind = $mainMod CTRL, L, exec, pidof hyprlock || hyprlock -q
bind = $mainMod CTRL, P, exec, systemctl poweroff
bind = $mainMod CTRL, R, exec, systemctl reboot
bind = ALT_SHIFT, t, exec, killall karya || sleep 0.5 && python ~/karya/main.py &
bind = ALT_SHIFT, t, exec, killall modus || sleep 0.5 && python ~/dotfiles/modus/main.py &
bind = $mainMod, R, exec, $fabric 'sc.screencast_start()'
bind = $mainMod_SHIFT, R, exec, $fabric 'sc.screencast_stop()'
File renamed without changes.
File renamed without changes.
@@ -48,12 +48,12 @@ if __name__ == "__main__":
launcher = Launcher()
app = Application(
"karya",
"modus",
bar,
launcher,
osd,
)
setproctitle.setproctitle("karya")
setproctitle.setproctitle("modus")
# Monitor CSS files for changes
css_file = monitor_file(get_relative_path("styles"))
File renamed without changes.
@@ -69,7 +69,7 @@ class AppLauncher(Box):
def close_launcher(self, *_):
remove_handler(self._arranger_handler) if self._arranger_handler else None
self.viewport.children = []
GLib.spawn_command_line_async("fabric-cli exec karya 'launcher.close()'")
GLib.spawn_command_line_async("fabric-cli exec modus 'launcher.close()'")
def handle_search_input(self, entry, *_):
text = entry.get_text().strip()
@@ -77,7 +77,7 @@ class AppLauncher(Box):
if text in commands:
command = commands[text]
GLib.spawn_command_line_async(f"fabric-cli exec karya '{command}'")
GLib.spawn_command_line_async(f"fabric-cli exec modus '{command}'")
self.search_entry.set_text("")
else:
self.arrange_viewport(text)
@@ -0,0 +1,290 @@
from fabric.bluetooth import BluetoothClient, BluetoothDevice
from fabric.widgets.box import Box
from fabric.widgets.button import Button
from fabric.widgets.entry import Entry
from fabric.widgets.label import Label
from fabric.widgets.scrolledwindow import ScrolledWindow
from gi.repository import GLib
from snippets import MaterialIcon
DEVICE_TYPE_ICONS = {
"headset": "headphones", # Icon for headset devices
"headphones": "headphones", # Icon for audio devices
"computer": "computer", # Icon for computer devices
"phone": "smartphone", # Icon for phone devices
"tablet": "tablet", # Icon for tablet devices
"keyboard": "keyboard", # Icon for keyboard devices
"mouse": "mouse", # Icon for mouse devices
"other": "devices", # Default icon
}
DEVICE_BATTERY_ICONS = {
"full": "battery_full", # Full battery
"medium": "battery_half", # Medium battery
"low": "battery_alert", # Low battery
}
class BluetoothManager(Box):
def __init__(self, **kwargs):
super().__init__(
name="bluetooth-launcher",
all_visible=False,
visible=False,
**kwargs,
)
self._arranger_handler = None
self.device_manager = DeviceManager(self)
self.viewport = None
self.search_entry = Entry(
name="search-entry",
h_expand=True,
notify_text=self.handle_search_input,
on_activate=self.handle_search_input,
)
self.toggle_button = Button(
on_clicked=lambda *_: self.device_manager.bluetooth_client.toggle_power()
)
self.device_manager.bluetooth_client.connect(
"notify::enabled", self.update_toggle_button
)
self.header_box = Box(
name="header-box",
spacing=10,
orientation="h",
children=[
self.search_entry,
self.toggle_button,
Button(
child=MaterialIcon("sync"),
on_clicked=lambda *_: self.device_manager.bluetooth_client.toggle_scan(),
),
],
)
self.launcher_box = Box(
name="bluetooth-launcher-box",
spacing=10,
orientation="v",
h_expand=True,
children=[self.header_box],
)
self.add(self.launcher_box)
# self.is_active = False
# self.polling_handler = None
def update_toggle_button(self, *_):
icon_name = (
"bluetooth"
if self.device_manager.bluetooth_client.enabled
else "bluetooth_disabled"
)
self.toggle_button.children = []
self.toggle_button.add(MaterialIcon(icon_name))
self.toggle_button.show_all()
def open_launcher(self):
if not self.viewport:
self.viewport = Box(name="viewport", spacing=4, orientation="v")
self.scrolled_window = ScrolledWindow(
name="scrolled-window",
spacing=10,
h_scrollbar_policy="never",
child=self.viewport,
)
self.launcher_box.add(self.scrolled_window)
self.viewport.children = []
self.device_manager.arrange_viewport()
self.viewport.show()
self.search_entry.grab_focus()
self.start_device_polling()
def handle_search_input(self, entry, text: str):
if isinstance(text, str):
self.device_manager.arrange_viewport(text)
def start_device_polling(self):
GLib.timeout_add(5000, self.device_manager.refresh_devices)
class DeviceManager:
def __init__(self, launcher):
self.launcher = launcher
self.bluetooth_client = BluetoothClient(
on_device_added=self.on_device_added,
on_device_removed=self.on_device_removed,
)
self._cached_devices = []
def refresh_devices(self, *_):
if not sel.bluetooth_client.enabled:
return True
if self.launcher.viewport: # Only refresh devices if Bluetooth section is open
self.arrange_viewport()
return True
def toggle_bluetooth(self, *_):
self.bluetooth_client.toggle_power()
self.arrange_viewport()
def on_device_added(self, client: BluetoothClient, address: str):
if device := client.get_device(address):
self._cached_devices.append(device)
self.refresh_viewport()
def on_device_removed(self, client: BluetoothClient, address: str):
self._cached_devices = [
device for device in self._cached_devices if device.address != address
]
self.refresh_viewport()
def refresh_viewport(self):
GLib.idle_add(self.arrange_viewport)
def query_devices(self, query: str = "") -> list:
if not self.bluetooth_client.enabled: # Skip querying if Bluetooth is off
return [] # No devices to show when Bluetooth is off
devices = []
query = query.lower()
for device in self._cached_devices:
name = device.name or "Unknown Device"
if query in name.lower():
devices.append(device)
# Sort connected devices first, then unconnected ones based on signal strength
return sorted(
devices,
key=lambda d: (
not d.connected,
not d.paired,
d.rssi if hasattr(d, "rssi") else 0,
),
)[:48]
def get_battery_status(self, device: BluetoothDevice) -> str:
if not device.connected:
return "not-connected"
battery_level = device.battery_level if device.battery_level > 0 else None
battery_percentage = (
device.battery_percentage if device.battery_percentage > 0 else None
)
if battery_level is None and battery_percentage is None:
return "low" # Show low if no battery info is available
if battery_percentage is not None:
if battery_percentage >= 75:
return "full"
elif battery_percentage >= 30:
return "medium"
else:
return "low"
# Fallback to battery level if percentage is unavailable
if battery_level is not None:
if battery_level >= 75:
return "full"
elif battery_level >= 30:
return "medium"
else:
return "low"
return "low"
def connect_device(self, device: BluetoothDevice):
device.set_connecting(not device.connected)
def bake_device_slot(self, device: BluetoothDevice, **kwargs) -> Box:
device_type = device.type.lower() # Ensure device type is in lowercase
icon_name = DEVICE_TYPE_ICONS.get(
device_type, "devices"
) # Default to 'bluetooth'
status_icon = MaterialIcon("link" if device.connected else "link_off")
# Only show battery icon for connected devices
if device.connected:
battery_status = self.get_battery_status(device)
battery_icon = MaterialIcon(
DEVICE_BATTERY_ICONS.get(battery_status, "battery_alert")
)
else:
battery_icon = None # No battery icon for non-connected devices
device_slot_children = [
MaterialIcon(icon_name),
Label(
label=device.name or "Unknown Device",
h_align="start",
h_expand=True,
),
battery_icon,
status_icon,
Button(
name="connect-button",
child=MaterialIcon(
"bluetooth_connected" if device.connected else "bluetooth_searching"
),
tooltip_text="Disconnect" if device.connected else "Connect",
on_clicked=lambda *_: self.connect_device(device),
),
]
device_slot_children = [
child for child in device_slot_children if child is not None
]
return Box(
name="device-slot",
spacing=10,
orientation="h",
children=device_slot_children,
)
def arrange_viewport(self, query: str = ""):
if not self.launcher.viewport:
return
# If Bluetooth is off, show a message that Bluetooth is off
if not self.bluetooth_client.enabled:
self.launcher.viewport.children = [] # Clear any existing content
self.launcher.viewport.add(
Label(
label="Bluetooth is off", # Display "Bluetooth is off"
h_align="center",
)
)
return
self.launcher.viewport.children = []
filtered_devices = self.query_devices(query)
# Show available (unpaired) devices first, followed by paired devices
if available_devices := [d for d in filtered_devices if not d.paired]:
for device in available_devices:
self.launcher.viewport.add(self.bake_device_slot(device))
if paired_devices := [d for d in filtered_devices if d.paired]:
for device in paired_devices:
self.launcher.viewport.add(self.bake_device_slot(device))
if not filtered_devices:
self.launcher.viewport.add(
Label(
label="No devices found" if not query else "No matching devices",
name="empty-label",
h_align="center",
)
)
@@ -81,7 +81,7 @@ class Cliphist(Box):
def close_launcher(self):
"""Closes the clipboard history launcher and clears viewport."""
self.viewport.children = []
GLib.spawn_command_line_async("fabric-cli exec karya 'launcher.close()'")
GLib.spawn_command_line_async("fabric-cli exec modus 'launcher.close()'")
def handle_search_input(self, text: str):
"""Handles search input to filter clipboard history."""
@@ -70,7 +70,7 @@ class Emoji(Box):
self.search_entry.grab_focus()
def close_launcher(self):
GLib.spawn_command_line_async("fabric-cli exec karya'launcher.close()'")
GLib.spawn_command_line_async("fabric-cli exec modus'launcher.close()'")
def handle_search_input(self, text: str):
self.emoji_manager.arrange_viewport(text)
@@ -79,7 +79,7 @@ class Emoji(Box):
class EmojiManager:
def __init__(self, launcher):
self.launcher = launcher
self.emoji_file_path = os.path.expanduser("~/quickbar/assets/emoji.json")
self.emoji_file_path = os.path.expanduser("~/dotfiles/modus/assets/emoji.json")
def load_emojis(self) -> Generator[tuple, None, None]:
if not os.path.exists(self.emoji_file_path):
@@ -63,7 +63,7 @@ class PowerMenu(Box):
self.show_all()
def close_menu(self):
GLib.spawn_command_line_async("fabric-cli exec karya 'launcher.close()'")
GLib.spawn_command_line_async("fabric-cli exec modus 'launcher.close()'")
def lock(self, *_):
GLib.spawn_command_line_async("hyprlock --immediate")
@@ -127,7 +127,7 @@ class ShellCommandManager:
viewport.add(button)
def close_menu(self):
GLib.spawn_command_line_async("fabric-cli exec karya 'launcher.close()'")
GLib.spawn_command_line_async("fabric-cli exec modus 'launcher.close()'")
def execute_command(self, cmd: str):
try:
@@ -0,0 +1,132 @@
from fabric.widgets.centerbox import CenterBox
from fabric.widgets.wayland import WaylandWindow as Window
from modules.launcher.components import (
AppLauncher,
BluetoothManager,
Cliphist,
Emoji,
PowerMenu,
Sh,
TodoManager,
WallpaperSelector,
)
class Launcher(Window):
def __init__(self, **kwargs):
super().__init__(
layer="top",
anchor="center",
visible=False,
all_visible=False,
**kwargs,
)
self.launcher = AppLauncher()
self.wallpapers = WallpaperSelector()
self.power = PowerMenu()
self.emoji = Emoji()
self.cliphist = Cliphist()
self.todo = TodoManager()
self.bluetooth = BluetoothManager()
self.sh = Sh()
self.widgets = {
"launcher": self.launcher,
"wallpapers": self.wallpapers,
"power": self.power,
"emoji": self.emoji,
"cliphist": self.cliphist,
"todo": self.todo,
"bluetooth": self.bluetooth,
"sh": self.sh,
}
self.launcher_box = CenterBox(
name="launcher",
orientation="v",
start_children=[
self.launcher,
self.wallpapers,
self.power,
self.emoji,
self.cliphist,
self.todo,
self.bluetooth,
self.sh,
],
)
self.add(self.launcher_box)
self.show_all()
self.hide()
self.add_keybinding("Escape", lambda *_: self.close())
def close(self):
self.set_keyboard_mode("none")
self.hide()
if self.bluetooth.is_active:
self.bluetooth.stop_device_polling()
for widget in self.widgets.values():
widget.hide()
# if hasattr(widget, "viewport") and widget.viewport:
# widget.viewport.hide()
return True
def open(self, widget):
if widget not in self.widgets:
return
self.set_keyboard_mode("exclusive")
self.show()
for w in self.widgets.values():
w.hide()
w.remove_style_class("open")
self.widgets[widget].show()
if widget == "launcher":
self.launcher.open_launcher()
self.launcher.search_entry.set_text("")
self.launcher.search_entry.grab_focus()
elif widget == "wallpapers":
self.wallpapers.search_entry.set_text("")
self.wallpapers.search_entry.grab_focus()
self.wallpapers.viewport.show()
self.wallpapers.viewport.set_property("name", "wallpaper-icons")
elif widget == "emoji":
self.emoji.open_launcher()
self.emoji.search_entry.set_text("")
self.emoji.search_entry.grab_focus()
elif widget == "cliphist":
self.cliphist.open_launcher()
self.cliphist.search_entry.set_text("")
self.cliphist.search_entry.grab_focus()
elif widget == "todo":
self.todo.open_launcher()
self.todo.todo_entry.set_text("")
self.todo.todo_entry.grab_focus()
elif widget == "bluetooth":
self.bluetooth.open_launcher()
self.bluetooth.search_entry.set_text("")
self.bluetooth.search_entry.grab_focus()
self.bluetooth.device_manager.arrange_viewport()
elif widget == "sh":
self.sh.open_launcher()
self.sh.search_entry.set_text("")
self.sh.search_entry.grab_focus()
else:
if hasattr(self.wallpapers, "viewport"):
self.wallpapers.viewport.hide()
self.wallpapers.viewport.set_property("name", None)
@@ -0,0 +1,194 @@
from fabric.widgets.centerbox import CenterBox
from fabric.widgets.stack import Stack
from fabric.widgets.wayland import WaylandWindow as Window
from modules.launcher.components import (
AppLauncher,
BluetoothManager,
Cliphist,
Emoji,
PowerMenu,
Sh,
TodoManager,
WallpaperSelector,
)
class Launcher(Window):
def __init__(self, **kwargs):
super().__init__(
layer="top",
anchor="center",
visible=False,
all_visible=False,
**kwargs,
)
self.launcher = AppLauncher()
self.wallpapers = WallpaperSelector()
self.power = PowerMenu()
self.emoji = Emoji()
self.cliphist = Cliphist()
self.todo = TodoManager()
self.bluetooth = BluetoothManager()
self.sh = Sh()
self._emoji_viewport = None
self._cliphist_viewport = None
self._todo_viewport = None
self._bluetooth_viewport = None
self._sh_viewport = None
self.stack = Stack(
name="launcher-content",
v_expand=True,
h_expand=True,
transition_type="crossfade",
transition_duration=250,
children=[
self.launcher,
self.wallpapers,
self.power,
self.emoji,
self.cliphist,
self.todo,
self.bluetooth,
self.sh,
],
)
self.launcher_box = CenterBox(
name="launcher",
orientation="v",
start_children=self.stack,
)
self.add(self.launcher_box)
self.show_all()
self.hide()
self.wallpapers.viewport.hide()
self.add_keybinding("Escape", lambda *_: self.close())
def close(self):
self.set_keyboard_mode("none")
self.hide()
if self.bluetooth.is_active:
self.bluetooth.stop_device_polling()
for widget in [
self.launcher,
self.wallpapers,
self.power,
self.emoji,
self.cliphist,
self.todo,
self.bluetooth,
self.sh,
]:
widget.remove_style_class("open")
if widget == self.wallpapers:
self.wallpapers.viewport.hide()
self.wallpapers.viewport.set_property("name", None)
if widget == self.emoji and hasattr(widget, "viewport") and widget.viewport:
widget.viewport.hide()
if (
widget == self.cliphist
and hasattr(widget, "viewport")
and widget.viewport
):
widget.viewport.hide()
if widget == self.todo and hasattr(widget, "viewport") and widget.viewport:
widget.viewport.hide()
if widget == self.bluetooth and widget.viewport:
widget.viewport.hide()
widget.viewport.children = []
widget.is_active = False
if widget == self.sh and widget.viewport:
widget.viewport.hide()
for style in [
"launcher",
"wallpapers",
"power",
"emoji",
"cliphist",
"todo",
"bluetooth",
"sh",
]:
self.stack.remove_style_class(style)
self.stack.set_visible_child(self.launcher)
return True
def open(self, widget):
self.set_keyboard_mode("exclusive")
self.show()
widgets = {
"launcher": self.launcher,
"wallpapers": self.wallpapers,
"power": self.power,
"emoji": self.emoji,
"cliphist": self.cliphist,
"todo": self.todo,
"bluetooth": self.bluetooth,
"sh": self.sh,
}
for style in widgets.keys():
self.stack.remove_style_class(style)
for w in widgets.values():
w.remove_style_class("open")
if widget in widgets:
self.stack.get_style_context().add_class(widget)
self.stack.set_visible_child(widgets[widget])
widgets[widget].add_style_class("open")
if widget == "launcher":
self.launcher.open_launcher()
self.launcher.search_entry.set_text("")
self.launcher.search_entry.grab_focus()
elif widget == "wallpapers":
self.wallpapers.search_entry.set_text("")
self.wallpapers.search_entry.grab_focus()
self.wallpapers.viewport.show()
self.wallpapers.viewport.set_property("name", "wallpaper-icons")
elif widget == "emoji":
self.emoji.open_launcher()
self.emoji.search_entry.set_text("")
self.emoji.search_entry.grab_focus()
elif widget == "cliphist":
self.cliphist.open_launcher()
self.cliphist.search_entry.set_text("")
self.cliphist.search_entry.grab_focus()
elif widget == "todo":
self.todo.open_launcher()
self.todo.todo_entry.set_text("")
self.todo.todo_entry.grab_focus()
elif widget == "bluetooth":
self.bluetooth.open_launcher()
self.bluetooth.search_entry.set_text("")
self.bluetooth.search_entry.grab_focus()
self.bluetooth.device_manager.arrange_viewport()
elif widget == "sh":
self.sh.open_launcher()
self.sh.search_entry.set_text("")
self.sh.search_entry.grab_focus()
else:
if hasattr(self.wallpapers, "viewport"):
self.wallpapers.viewport.hide()
self.wallpapers.viewport.set_property("name", None)
@@ -32,12 +32,6 @@ class Launcher(Window):
self.bluetooth = BluetoothManager()
self.sh = Sh()
self._emoji_viewport = None
self._cliphist_viewport = None
self._todo_viewport = None
self._bluetooth_viewport = None
self._sh_viewport = None
self.stack = Stack(
name="launcher-content",
v_expand=True,
@@ -59,8 +53,9 @@ class Launcher(Window):
self.launcher_box = CenterBox(
name="launcher",
orientation="v",
start_children=self.stack,
# start_children=self.stack,
)
self.launcher_box.add(self.stack) # Dynamically add only the stack
self.add(self.launcher_box)
self.show_all()
@@ -71,8 +66,6 @@ class Launcher(Window):
def close(self):
self.set_keyboard_mode("none")
self.hide()
if self.bluetooth.is_active:
self.bluetooth.stop_device_polling()
for widget in [
self.launcher,
@@ -103,13 +96,11 @@ class Launcher(Window):
if widget == self.bluetooth and widget.viewport:
widget.viewport.hide()
widget.viewport.children = []
widget.is_active = False
if widget == self.sh and widget.viewport:
widget.viewport.hide()
style_classes = [
for style in [
"launcher",
"wallpapers",
"power",
@@ -118,12 +109,8 @@ class Launcher(Window):
"todo",
"bluetooth",
"sh",
]
for style_class in style_classes:
if self.stack.get_style_context().has_class(style_class):
self.stack.get_style_context().remove_class(style_class)
self.stack.set_visible_child(self.launcher)
]:
self.stack.remove_style_class(style)
return True
@@ -142,17 +129,18 @@ class Launcher(Window):
"sh": self.sh,
}
if widget is None:
widget = "launcher"
style_classes = list(widgets.keys())
for style_class in style_classes:
if self.stack.get_style_context().has_class(style_class):
self.stack.get_style_context().remove_class(style_class)
for w in widgets.values():
w.hide()
for style in widgets.keys():
self.stack.remove_style_class(style)
if widget in widgets:
self.stack.get_style_context().add_class(widget)
self.stack.set_visible_child(widgets[widget])
widgets[widget].show()
if widget != "launcher":
self.launcher.hide()
if widget == "launcher":
self.launcher.open_launcher()
@@ -190,8 +178,3 @@ class Launcher(Window):
self.sh.open_launcher()
self.sh.search_entry.set_text("")
self.sh.search_entry.grab_focus()
else:
if hasattr(self.wallpapers, "viewport"):
self.wallpapers.viewport.hide()
self.wallpapers.viewport.set_property("name", None)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -9,7 +9,7 @@ from loguru import logger
def read_config():
home_dir = GLib.get_home_dir()
config_path = f"{home_dir}/karya/assets/config.json"
config_path = f"{home_dir}/dotfiles/modus/assets/config.json"
with open(config_path, "r") as file:
# Load JSON data into a Python dictionary
File renamed without changes.
File renamed without changes.
+44
View File
@@ -0,0 +1,44 @@
#launcher-app {
border-radius: 16px;
padding: 16px;
transition: padding 0.25s cubic-bezier(0.5, 0.25, 0, 1);
animation: loadSlot 0.5s ease;
}
@keyframes loadSlot {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
#launcher-app:hover image,
#launcher-app:focus imgae {
-gtk-icon-shadow: 2px 2px @primary;
}
#launcher-app:hover,
#launcher-app:focus {
text-shadow: 2pt 2pt 2pt @primary;
}
#launcher-app-icon {
margin-right: 8px;
}
#wallpaper-icons {
animation: fade-in 0.25s ease-in-out;
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
File renamed without changes.
+10
View File
@@ -0,0 +1,10 @@
#device-slot {
background-color: @suraceVariant;
border-radius: 5px;
padding: 8px;
}
#device-slot:hover,
#device-slot:focus {
background-color: mix(@onSurface, @surface, 0.92);
}
+30
View File
@@ -0,0 +1,30 @@
#cliphist-launcher-box button#clip-img-item {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
border-radius: 8px;
min-width: 70px;
min-height: 70px;
}
#cliphist-launcher-box button#clip-img-item:hover,
#cliphist-launcher-box button#clip-img-item:focus {
box-shadow: 2px 2px 2px @primary;
}
#cliphist-launcher-box button#clip-item {
border-radius: 11px;
background-color: transparent;
background-image: none;
box-shadow: none;
padding: 3px;
}
#cliphist-launcher-box button#clip-item {
font-size: 24px;
}
#cliphist-launcher-box button#clip-item:hover,
#cliphist-launcher-box button#clip-item:focus {
text-shadow: 2px 2px 2px @primary;
}
View File
Whitespace-only changes.
+16
View File
@@ -0,0 +1,16 @@
#emoji-launcher-box button#emoji-item {
border-radius: 11px;
background-color: transparent;
background-image: none;
box-shadow: none;
padding: 0px;
}
#emoji-launcher-box button#emoji-item label {
font-size: 24px;
}
#emoji-launcher-box button#emoji-item:hover,
#emoji-launcher-box button#emoji-item:focus {
text-shadow: 2px 2px 2px @primary;
}
File renamed without changes.
@@ -1,4 +1,4 @@
@import url(../../../.cache/material/colors.css);
@import url(../../.cache/material/colors.css);
@import "./bar.css";
@import "./notification.css";
@import "./osd.css";
File renamed without changes.
File renamed without changes.
+26
View File
@@ -0,0 +1,26 @@
#powermenu-button {
border-radius: 20px;
padding: 20px;
}
#powermenu-button:hover,
#powermenu-button:focus {
background-color: mix(@onSurface, @surface, 0.8);
}
#powermenu-button:hover label,
#powermenu-button:focus label {
color: @primary;
}
#powermenu-button:active {
background-image: radial-gradient(
circle,
mix(@onSurfaceVariant, transparent, 0.7) 10%,
transparent 0%
);
}
#powermenu-button:active label {
color: @shadow;
}
+15
View File
@@ -0,0 +1,15 @@
#shell-command-launcher-box button#sh-item {
border-radius: 11px;
background-color: transparent;
background-image: none;
box-shadow: none;
padding: 0px;
}
#shell-command-launcher-box button#sh-item {
font-size: 24px;
}
#shell-command-launcher-box button#sh-item:hover,
#shell-command-launcher-box button#sh-item:focus {
text-shadow: 2px 2px 2px @primary;
}
+24
View File
@@ -0,0 +1,24 @@
#todo-launcher {
background-color: @surface;
padding: 10px;
border-radius: 8px;
}
#todo-item {
padding: 8px;
border-radius: 4px;
background-color: alpha(@surface, 0.8);
}
#todo-label {
color: @primary;
}
#todo-label-completed {
color: alpha(@outlineVariant, 0.5);
text-decoration: line-through;
}
#delete-button {
color: @error;
}
+40
View File
@@ -0,0 +1,40 @@
#wallpaper-icons {
animation: fade-in 0.25s ease-in-out;
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#wallpaper-icons:selected {
background-color: @surfaceBright;
border-radius: 8px;
}
#dropdown-box {
background-color: @surface;
padding: 8px;
border-radius: 16px;
}
#scheme-dropdown {
font-weight: bold;
}
#scheme-dropdown > * > * {
font-weight: bold;
}
#scheme-dropdown.box button.box.cellview {
background-color: @primary;
}
#scheme-dropdown.box button.box.cellview:selected {
background-color: @surfaceBright;
}
View File
Whitespace-only changes.