Boris Yumankulov abec9bbef8
All checks were successful
Check Translations / check-translations (push) Successful in 15s
Code and build check / Check code (push) Successful in 1m21s
Code and build check / Build with uv (push) Successful in 47s
Move repo from git to gitea
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
2025-06-01 15:21:32 +05:00
..
2025-06-01 15:21:32 +05:00
2025-06-01 15:21:32 +05:00

📘 Эта документация также доступна на русском


📋 Contents


📖 Overview

Themes in PortProtonQT allow customizing the UI appearance. Themes are stored under:

  • ~/.local/share/PortProtonQT/themes.

📁 Creating the Theme Folder

mkdir -p ~/.local/share/PortProtonQT/themes/my_custom_theme

🎨 Style File (styles.py)

Create a styles.py in the theme root. It should define variables or functions that return CSS.

Example:

def custom_button_style(color1, color2):
    return f"""
    QPushButton {{
        background: qlineargradient(x1:0, y1:0, x2:1, y2:0,
                                    stop:0 {color1}, stop:1 {color2});
    }}
    """

📝 Metadata (metainfo.ini)

[Metainfo]
name = My Custom Theme
author = Your Name
author_link = https://example.com
description = Description of your theme.

🖼 Screenshots

Folder: images/screenshots/ — place UI screenshots there.


🔡 Fonts and Icons (optional)

  • Fonts: fonts/*.ttf or .otf
  • Icons: images/icons/*.svg/.png