Final tweaks? I hope so.

This commit is contained in:
Axenide committed 2025-05-27 22:33:53 -03:00
1 parent 50c547aa79
commit 0bb2523155
12 files changed
+19 -16

No files matched your search

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 396 KiB

After

Width:  |  Height:  |  Size: 34 KiB

+1 -1
View File
@@ -213,7 +213,7 @@ exec-once = wl-paste --type text --watch cliphist store
exec-once = wl-paste --type image --watch cliphist store
$fabricSend = fabric-cli exec {APP_NAME}
$axMessage = notify-send "Axenide" "What are you doing?" -i "{home}/.config/{APP_NAME_CAP}/assets/ax.png" -a "Source Code" -A "Be patient. 🍙"
$axMessage = notify-send "Axenide" "FIRE IN THE HOLE‼️🗣️🔥🕳️" -i "{home}/.config/{APP_NAME_CAP}/assets/ax.png" -A "🗣️" -A "🔥" -A "🕳️" -a "Source Code"
bind = {bind_vars.get('prefix_restart', 'SUPER ALT')}, {bind_vars.get('suffix_restart', 'B')}, exec, killall {APP_NAME}; uwsm-app $(python {home}/.config/{APP_NAME_CAP}/main.py) # Reload {APP_NAME_CAP}
bind = {bind_vars.get('prefix_axmsg', 'SUPER')}, {bind_vars.get('suffix_axmsg', 'A')}, exec, $axMessage # Message
+1 -1
View File
@@ -422,7 +422,7 @@ class Buttons(Gtk.Grid):
self.night_mode_button = NightModeButton()
self.caffeine_button = CaffeineButton()
if data.PANEL_THEME == "Panel" and data.BAR_POSITION in ["Left", "Right"]:
if data.PANEL_THEME == "Panel" and (data.BAR_POSITION in ["Left", "Right"] or data.PANEL_POSITION in ["Start", "End"]):
self.attach(self.network_button, 0, 0, 1, 1)
self.attach(self.bluetooth_button, 1, 0, 1, 1)
+1 -1
View File
@@ -118,7 +118,7 @@ class Dashboard(Box):
self.add(self.switcher)
self.add(self.stack)
if data.PANEL_THEME == "Panel" and data.BAR_POSITION in ["Left", "Right"]:
if data.PANEL_THEME == "Panel" and (data.BAR_POSITION in ["Left", "Right"] or data.PANEL_POSITION in ["Start", "End"]):
GLib.idle_add(self._setup_switcher_icons)
self.show_all()
+8 -5
View File
@@ -14,7 +14,10 @@ from gi.repository import Gdk
import config.data as data
import modules.icons as icons
vertical_mode = True if data.PANEL_THEME == "Panel" and data.PANEL_POSITION in ["Left", "Right"] else False
vertical_mode = data.PANEL_THEME == "Panel" and (data.BAR_POSITION in ["Left", "Right"] or data.PANEL_POSITION in ["Start", "End"])
emoji_rows = 3 if not vertical_mode else 9
emoji_columns = 9 if not vertical_mode else 5
class EmojiPicker(Box):
def __init__(self, **kwargs):
@@ -27,7 +30,7 @@ class EmojiPicker(Box):
self.notch = kwargs["notch"]
self.selected_index = -1
self.emojis_per_page = 9 * 3
self.emojis_per_page = emoji_columns * emoji_rows
self.current_page_index = 0
self.filtered_emojis = []
self.total_pages = 0
@@ -138,7 +141,7 @@ class EmojiPicker(Box):
row_box = None
for i, (emoji_char, emoji_info) in enumerate(page_emojis):
if i % 9 == 0:
if i % emoji_columns == 0:
row_box = Box(name="emoji-row-box", orientation="h", spacing=2)
grid_box.add(row_box)
if row_box is not None:
@@ -239,8 +242,8 @@ class EmojiPicker(Box):
if total_items_current_page == 0:
return
rows = 3
columns = 9
rows = emoji_rows
columns = emoji_columns
if self.selected_index == -1:
if keyval in (Gdk.KEY_Down, Gdk.KEY_Right):
+1 -1
View File
@@ -316,7 +316,7 @@ class Kanban(Gtk.Box):
KanbanColumn("Done")
]
vertical_mode = True if data.PANEL_THEME == "Panel" and data.BAR_POSITION in ["Left", "Right"] else False
vertical_mode = True if data.PANEL_THEME == "Panel" and (data.BAR_POSITION in ["Left", "Right"] or data.PANEL_POSITION in ["Start", "End"]) else False
for i, column in enumerate(self.columns):
if vertical_mode == False:
+1 -1
View File
@@ -273,7 +273,7 @@ class Notch(Window):
self.stack.add_style_class(data.BAR_POSITION.lower())
self.stack.add_style_class(data.PANEL_POSITION.lower())
if is_panel_vertical:
if is_panel_vertical or (data.PANEL_POSITION in ["Start", "End"] and data.PANEL_THEME == "Panel"):
self.compact.set_size_request(260, 40)
self.launcher.set_size_request(320, 635)
self.tmux.set_size_request(320, 635)
+2 -2
View File
@@ -25,7 +25,7 @@ import modules.icons as icons
SAVE_FILE = os.path.expanduser("~/.pins.json")
icon_size = 80
if data.PANEL_THEME == "Panel" and data.BAR_POSITION in ["Left", "Right"]:
if data.PANEL_THEME == "Panel" and data.BAR_POSITION in ["Left", "Right"] or data.PANEL_POSITION in ["Start", "End"]:
icon_size = 36
def createSurfaceFromWidget(widget: Gtk.Widget) -> cairo.ImageSurface:
@@ -410,7 +410,7 @@ class Pins(Gtk.Box):
self.pack_start(scrolled_window, True, True, 0)
if data.PANEL_THEME == "Panel" and data.BAR_POSITION in ["Left", "Right"]:
if data.PANEL_THEME == "Panel" and (data.BAR_POSITION in ["Left", "Right"] or data.PANEL_POSITION in ["Start", "End"]):
for row in range(10):
for col in range(3):
cell = Cell(self)
+1 -1
View File
@@ -19,7 +19,7 @@ from services.mpris import MprisPlayer, MprisPlayerManager
from widgets.circle_image import CircleImage
vertical_mode = False
if data.PANEL_THEME == "Panel" and data.BAR_POSITION in ["Left", "Right"]:
if data.PANEL_THEME == "Panel" and (data.BAR_POSITION in ["Left", "Right"] or data.PANEL_POSITION in ["Start", "End"]):
vertical_mode = True
def get_player_icon_markup_by_name(player_name):
+1 -1
View File
@@ -10,7 +10,7 @@ import modules.icons as icons
class PowerMenu(Box):
def __init__(self, **kwargs):
orientation = "h"
if data.PANEL_THEME == "Panel" and data.BAR_POSITION in ["Left", "Right"]:
if data.PANEL_THEME == "Panel" and (data.BAR_POSITION in ["Left", "Right"] or data.PANEL_POSITION in ["Start", "End"]):
orientation = "v"
super().__init__(
+1 -1
View File
@@ -21,7 +21,7 @@ SCREENRECORD_SCRIPT = get_relative_path("../scripts/screenrecord.sh")
class Toolbox(Box):
def __init__(self, **kwargs):
orientation = "h"
if data.PANEL_THEME == "Panel" and data.BAR_POSITION in ["Left", "Right"]:
if data.PANEL_THEME == "Panel" and (data.BAR_POSITION in ["Left", "Right"] or data.PANEL_POSITION in ["Start", "End"]):
orientation = "v"
super().__init__(
+1 -1
View File
@@ -30,7 +30,7 @@ class Widgets(Box):
vertical_layout = False
if data.PANEL_THEME == "Panel" and data.BAR_POSITION in ["Left", "Right"]:
if data.PANEL_THEME == "Panel" and (data.BAR_POSITION in ["Left", "Right"] or data.PANEL_POSITION in ["Start", "End"]):
vertical_layout = True
self.notch = kwargs["notch"]