Skip to content

Commit

Permalink
refactor(bar): scale widgets to 1920x1080p
Browse files Browse the repository at this point in the history
  • Loading branch information
jx11r committed Aug 31, 2023
1 parent 6a37582 commit 808d9c8
Show file tree
Hide file tree
Showing 5 changed files with 193 additions and 215 deletions.
14 changes: 7 additions & 7 deletions core/bar/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
from utils.config import cfg

defaults = {
"font": "SauceCodePro Nerd Font Medium",
"fontsize": 10,
"font": "Hasklug Nerd Font Mono Medium",
"fontsize": 11,
"padding": None,
}


class Bar:
def __init__(self, theme: str) -> None:
def __init__(self, theme: str):
self.theme = theme

@property
Expand Down Expand Up @@ -48,12 +48,12 @@ def base(bg: str | None, fg: str) -> dict:
}


def icon_font(size=15) -> dict:
font = "SauceCodePro Nerd Font"
def symbol(size=16) -> dict:
font = "Symbols Nerd Font Mono Regular"
return {"font": font, "fontsize": size}


def powerline(path: str | list[tuple], size=9) -> dict:
def powerline(path: str | list[tuple], size=10):
return { "decorations": [
PowerLineDecoration(
path=path,
Expand All @@ -62,7 +62,7 @@ def powerline(path: str | list[tuple], size=9) -> dict:
]} # fmt: skip


def rectangle(side: str = "") -> dict:
def rectangle(side=""):
return { "decorations": [
RectDecoration(
filled = True,
Expand Down
Loading

0 comments on commit 808d9c8

Please sign in to comment.