Skip to content

Commit

Permalink
revert scaled height default
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtedde committed Oct 22, 2023
1 parent 98af58b commit be0258e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vorta/views/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
from vorta.utils import get_asset, uses_dark_mode


def get_colored_icon(icon_name, scaled_height=120, return_qpixmap=False):
def get_colored_icon(icon_name, scaled_height=128, return_qpixmap=False):
"""
Return SVG icon in the correct color.
"""
with open(get_asset(f"icons/{icon_name}.svg"), 'rb') as svg_file:
svg_str = svg_file.read()
if uses_dark_mode():
svg_str = svg_str.replace(b'#000000', b'#ffffff')
# Reduce image size to 128 height
svg_img = QImage.fromData(svg_str).scaledToHeight(scaled_height)

if return_qpixmap:
Expand Down

0 comments on commit be0258e

Please sign in to comment.