This commit is contained in:
00xJ4CK committed 2024-12-22 20:52:24 +05:45
1 parent 06c577afc1
commit 2cb92a308f
4 files changed
+4 -53

No files matched your search

@@ -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)
-1
View File
@@ -1,5 +1,4 @@
from .animator import *
from .calendar import *
from .custom_image import *
from .functions import *
from .icon import *
-48
View File
@@ -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,
)
+1 -2
View File
@@ -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
}