Skip to content

Commit

Permalink
Fix row padding setting not being applied
Browse files Browse the repository at this point in the history
Fixes #64
  • Loading branch information
deathaxe committed Mar 3, 2023
1 parent ba96c83 commit 9ed036c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions core/themes.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ def _create_general_patch(settings):
log("Preparing general patch")
theme_content = []

row_padding = settings.get("row_padding")
if row_padding:
theme_content.append({"class": "sidebar_tree", "row_padding": row_padding})

color = convert_color_value(settings.get("color"))
opacity = settings.get("opacity")
icon = _patch_icon(None, color, opacity)
Expand All @@ -131,10 +135,6 @@ def _create_general_patch(settings):
if size:
icon["content_margin"] = [size, size]

row_padding = settings.get("row_padding")
if row_padding:
icon["row_padding"] = row_padding

theme_content.append(icon)

color = convert_color_value(settings.get("color_on_hover"))
Expand All @@ -155,6 +155,10 @@ def _create_specific_patch(settings):
log("Preparing specific patch")
theme_content = []

row_padding = settings.get("row_padding")
if row_padding:
theme_content.append({"class": "sidebar_tree", "row_padding": row_padding})

color = convert_color_value(settings.get("color"))
icon = _patch_icon(None, color)

Expand Down

0 comments on commit 9ed036c

Please sign in to comment.