From 2cb92a308ffba73fec3485e19f97bfea287819ea Mon Sep 17 00:00:00 2001 From: 00xJ4CK <144516471+00xJ4CK@users.noreply.github.com> Date: Sun, 22 Dec 2024 20:52:24 +0545 Subject: [PATCH] fix --- .../modules/launcher/widgets/calendar.py | 5 +- config/fabric/snippets/__init__.py | 1 - config/fabric/snippets/calendar.py | 48 ------------------- config/hypr/UserConfigs/UserSettings.conf | 3 +- 4 files changed, 4 insertions(+), 53 deletions(-) delete mode 100644 config/fabric/snippets/calendar.py diff --git a/config/fabric/modules/launcher/widgets/calendar.py b/config/fabric/modules/launcher/widgets/calendar.py index 6ffcb155..2b522287 100644 --- a/config/fabric/modules/launcher/widgets/calendar.py +++ b/config/fabric/modules/launcher/widgets/calendar.py @@ -1,6 +1,7 @@ from fabric.widgets.box import Box from fabric.widgets.button import Button -from snippets import GtkCalendar, MaterialIcon +from gi.repository import Gtk +from snippets import MaterialIcon class Calendar: @@ -16,7 +17,7 @@ class Calendar: calendar_container = Box( name="calendar", - children=GtkCalendar(h_expand=True), + children=Gtk.Calendar(visible=True, hexpand=True), ) viewport.add(calendar_container) diff --git a/config/fabric/snippets/__init__.py b/config/fabric/snippets/__init__.py index 0cd2d48b..add4b114 100644 --- a/config/fabric/snippets/__init__.py +++ b/config/fabric/snippets/__init__.py @@ -1,5 +1,4 @@ from .animator import * -from .calendar import * from .custom_image import * from .functions import * from .icon import * diff --git a/config/fabric/snippets/calendar.py b/config/fabric/snippets/calendar.py deleted file mode 100644 index cff34150..00000000 --- a/config/fabric/snippets/calendar.py +++ /dev/null @@ -1,48 +0,0 @@ -from collections.abc import Iterable -from typing import Literal - -import gi -from fabric.widgets.widget import Widget -from gi.repository import Gtk - -gi.require_version("Gtk", "3.0") - - -class GtkCalendar(Gtk.Calendar, Widget): - """A switch widget.""" - - def __init__( - self, - name: str | None = None, - h_align: ( - Literal["fill", "start", "end", "center", "baseline"] | Gtk.Align | None - ) = None, - v_align: ( - Literal["fill", "start", "end", "center", "baseline"] | Gtk.Align | None - ) = None, - h_expand: bool = False, - v_expand: bool = False, - tooltip_text: str | None = None, - tooltip_markup: str | None = None, - visible: bool = True, - all_visible: bool = False, - style: str | None = None, - style_classes: Iterable[str] | str | None = None, - **kwargs, - ): - Gtk.Calendar.__init__(self) # type: ignore - Widget.__init__( - self, - name, - visible, - all_visible, - style, - style_classes, - tooltip_text, - tooltip_markup, - h_align, - v_align, - h_expand, - v_expand, - **kwargs, - ) diff --git a/config/hypr/UserConfigs/UserSettings.conf b/config/hypr/UserConfigs/UserSettings.conf index 8fc85202..3bbcd2ed 100644 --- a/config/hypr/UserConfigs/UserSettings.conf +++ b/config/hypr/UserConfigs/UserSettings.conf @@ -19,8 +19,7 @@ general { gaps_out = 8 border_size = 0 - col.active_border = $border_color_active - col.inactive_border = $border_color_inactive + layout = dwindle }