diff --git a/portprotonqt/themes/standart-light/fonts/Orbitron-Regular.ttf b/portprotonqt/themes/standart-light/fonts/Orbitron-Regular.ttf deleted file mode 100644 index ebaece0..0000000 Binary files a/portprotonqt/themes/standart-light/fonts/Orbitron-Regular.ttf and /dev/null differ diff --git a/portprotonqt/themes/standart-light/fonts/Poppins-Regular.ttf b/portprotonqt/themes/standart-light/fonts/Poppins-Regular.ttf deleted file mode 100644 index 9f0c71b..0000000 Binary files a/portprotonqt/themes/standart-light/fonts/Poppins-Regular.ttf and /dev/null differ diff --git a/portprotonqt/themes/standart-light/fonts/RASKHAL-Regular.ttf b/portprotonqt/themes/standart-light/fonts/RASKHAL-Regular.ttf deleted file mode 100755 index cb4b29d..0000000 Binary files a/portprotonqt/themes/standart-light/fonts/RASKHAL-Regular.ttf and /dev/null differ diff --git a/portprotonqt/themes/standart-light/images/icons/addgame.svg b/portprotonqt/themes/standart-light/images/icons/addgame.svg deleted file mode 100644 index d279476..0000000 --- a/portprotonqt/themes/standart-light/images/icons/addgame.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/back.svg b/portprotonqt/themes/standart-light/images/icons/back.svg deleted file mode 100644 index b153396..0000000 --- a/portprotonqt/themes/standart-light/images/icons/back.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/broken.svg b/portprotonqt/themes/standart-light/images/icons/broken.svg deleted file mode 100644 index bec621a..0000000 --- a/portprotonqt/themes/standart-light/images/icons/broken.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/down.svg b/portprotonqt/themes/standart-light/images/icons/down.svg deleted file mode 100644 index f72cf35..0000000 --- a/portprotonqt/themes/standart-light/images/icons/down.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/platinum-gold.svg b/portprotonqt/themes/standart-light/images/icons/platinum-gold.svg deleted file mode 100644 index fcec91b..0000000 --- a/portprotonqt/themes/standart-light/images/icons/platinum-gold.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/play.svg b/portprotonqt/themes/standart-light/images/icons/play.svg deleted file mode 100644 index 6c368ec..0000000 --- a/portprotonqt/themes/standart-light/images/icons/play.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/ppqt-tray.svg b/portprotonqt/themes/standart-light/images/icons/ppqt-tray.svg deleted file mode 100644 index 844a2c8..0000000 --- a/portprotonqt/themes/standart-light/images/icons/ppqt-tray.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/save.svg b/portprotonqt/themes/standart-light/images/icons/save.svg deleted file mode 100644 index f401b3f..0000000 --- a/portprotonqt/themes/standart-light/images/icons/save.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/search.svg b/portprotonqt/themes/standart-light/images/icons/search.svg deleted file mode 100644 index 7dafc55..0000000 --- a/portprotonqt/themes/standart-light/images/icons/search.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/silver-bronze.svg b/portprotonqt/themes/standart-light/images/icons/silver-bronze.svg deleted file mode 100644 index 75fc95d..0000000 --- a/portprotonqt/themes/standart-light/images/icons/silver-bronze.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/spinner.svg b/portprotonqt/themes/standart-light/images/icons/spinner.svg deleted file mode 100644 index a8e901e..0000000 --- a/portprotonqt/themes/standart-light/images/icons/spinner.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/steam.svg b/portprotonqt/themes/standart-light/images/icons/steam.svg deleted file mode 100644 index d5db214..0000000 --- a/portprotonqt/themes/standart-light/images/icons/steam.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/stop.svg b/portprotonqt/themes/standart-light/images/icons/stop.svg deleted file mode 100644 index ee999cc..0000000 --- a/portprotonqt/themes/standart-light/images/icons/stop.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/up.svg b/portprotonqt/themes/standart-light/images/icons/up.svg deleted file mode 100644 index 6cf975b..0000000 --- a/portprotonqt/themes/standart-light/images/icons/up.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/icons/update.svg b/portprotonqt/themes/standart-light/images/icons/update.svg deleted file mode 100644 index c3ab38e..0000000 --- a/portprotonqt/themes/standart-light/images/icons/update.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/portprotonqt/themes/standart-light/images/placeholder.jpg b/portprotonqt/themes/standart-light/images/placeholder.jpg deleted file mode 100644 index e461216..0000000 Binary files a/portprotonqt/themes/standart-light/images/placeholder.jpg and /dev/null differ diff --git a/portprotonqt/themes/standart-light/images/screenshots/Библиотека.png b/portprotonqt/themes/standart-light/images/screenshots/Библиотека.png deleted file mode 100644 index ee91ed0..0000000 Binary files a/portprotonqt/themes/standart-light/images/screenshots/Библиотека.png and /dev/null differ diff --git a/portprotonqt/themes/standart-light/images/screenshots/Карточка.png b/portprotonqt/themes/standart-light/images/screenshots/Карточка.png deleted file mode 100644 index 425a0ca..0000000 Binary files a/portprotonqt/themes/standart-light/images/screenshots/Карточка.png and /dev/null differ diff --git a/portprotonqt/themes/standart-light/images/screenshots/Настройки.png b/portprotonqt/themes/standart-light/images/screenshots/Настройки.png deleted file mode 100644 index 8d3073d..0000000 Binary files a/portprotonqt/themes/standart-light/images/screenshots/Настройки.png and /dev/null differ diff --git a/portprotonqt/themes/standart-light/metainfo.ini b/portprotonqt/themes/standart-light/metainfo.ini deleted file mode 100644 index e899572..0000000 --- a/portprotonqt/themes/standart-light/metainfo.ini +++ /dev/null @@ -1,5 +0,0 @@ -[Metainfo] -author = BlackSnaker -author_link = -description = Стандартная тема PortProtonQt (светлый вариант) -name = Light diff --git a/portprotonqt/themes/standart-light/styles.py b/portprotonqt/themes/standart-light/styles.py deleted file mode 100644 index 1611e2a..0000000 --- a/portprotonqt/themes/standart-light/styles.py +++ /dev/null @@ -1,712 +0,0 @@ -from portprotonqt.theme_manager import ThemeManager -from portprotonqt.config_utils import read_theme_from_config - -theme_manager = ThemeManager() -current_theme_name = read_theme_from_config() - -# КОНСТАНТЫ -favoriteLabelSize = 48, 48 -pixmapsScaledSize = 60, 60 - -GAME_CARD_ANIMATION = { - # Тип анимации fade при входе на детальную страницу - # Возможные значения: "fade", "slide_left", "slide_right", "slide_up", "slide_down", "bounce", "none" - "detail_page_animation_type": "fade", - - # Ширина обводки карточки в состоянии покоя (без наведения или фокуса). - # Влияет на толщину рамки вокруг карточки, когда она не выделена. - # Значение в пикселях. - "default_border_width": 2, - - # Ширина обводки при наведении курсора. - # Увеличивает толщину рамки, когда курсор находится над карточкой. - # Значение в пикселях. - "hover_border_width": 8, - - # Ширина обводки при фокусе (например, при выборе с клавиатуры). - # Увеличивает толщину рамки, когда карточка в фокусе. - # Значение в пикселях. - "focus_border_width": 12, - - # Минимальная ширина обводки во время пульсирующей анимации. - # Определяет минимальную толщину рамки при пульсации (анимация "дыхания"). - # Значение в пикселях. - "pulse_min_border_width": 8, - - # Максимальная ширина обводки во время пульсирующей анимации. - # Определяет максимальную толщину рамки при пульсации. - # Значение в пикселях. - "pulse_max_border_width": 10, - - # Длительность анимации изменения толщины обводки (например, при наведении или фокусе). - # Влияет на скорость перехода от одной ширины обводки к другой. - # Значение в миллисекундах. - "thickness_anim_duration": 300, - - # Длительность одного цикла пульсирующей анимации. - # Определяет, как быстро рамка "пульсирует" между min и max значениями. - # Значение в миллисекундах. - "pulse_anim_duration": 800, - - # Длительность анимации вращения градиента. - # Влияет на скорость, с которой градиентная обводка вращается вокруг карточки. - # Значение в миллисекундах. - "gradient_anim_duration": 3000, - - # Начальный угол градиента (в градусах). - # Определяет начальную точку вращения градиента при старте анимации. - "gradient_start_angle": 360, - - # Конечный угол градиента (в градусах). - # Определяет конечную точку вращения градиента. - # Значение 0 означает полный поворот на 360 градусов. - "gradient_end_angle": 0, - - # Тип кривой сглаживания для анимации увеличения обводки (при наведении/фокусе). - # Влияет на "чувство" анимации (например, плавное ускорение или замедление). - # Возможные значения: строки, соответствующие QEasingCurve.Type (например, "OutBack", "InOutQuad"). - "thickness_easing_curve": "OutBack", - - # Тип кривой сглаживания для анимации уменьшения обводки (при уходе курсора/потере фокуса). - # Влияет на "чувство" возврата к исходной ширине обводки. - "thickness_easing_curve_out": "InBack", - - # Цвета градиента для анимированной обводки. - # Список словарей, где каждый словарь задает позицию (0.0–1.0) и цвет в формате hex. - # Влияет на внешний вид обводки при наведении или фокусе. - "gradient_colors": [ - {"position": 0, "color": "#00fff5"}, # Начальный цвет (циан) - {"position": 0.33, "color": "#FF5733"}, # Цвет на 33% (оранжевый) - {"position": 0.66, "color": "#9B59B6"}, # Цвет на 66% (пурпурный) - {"position": 1, "color": "#00fff5"} # Конечный цвет (возвращение к циану) - ], - - # Длительность анимации fade при входе на детальную страницу - "detail_page_fade_duration": 350, - - # Длительность анимации slide при входе на детальную страницу - "detail_page_slide_duration": 500, - - # Длительность анимации zoom при входе на детальную страницу - "detail_page_zoom_duration": 400 -} - -# СТИЛЬ ШАПКИ ГЛАВНОГО ОКНА -MAIN_WINDOW_HEADER_STYLE = """ - QFrame { - background: transparent; - border: 10px solid rgba(255, 255, 255, 0.10); - border-bottom: 0px solid rgba(255, 255, 255, 0.15); - border-top-left-radius: 30px; - border-top-right-radius: 30px; - border: none; - } -""" - -# СТИЛЬ ЗАГОЛОВКА (ЛОГО) В ШАПКЕ -TITLE_LABEL_STYLE = """ - QLabel { - font-family: 'RASKHAL'; - font-size: 38px; - margin: 0 0 0 0; - color: #007AFF; - } -""" - -# СТИЛЬ ОБЛАСТИ НАВИГАЦИИ (КНОПКИ ВКЛАДОК) -NAV_WIDGET_STYLE = """ - QWidget { - background: #ffffff; - border-bottom: 0px solid rgba(0, 0, 0, 0.10); - } -""" - -# СТИЛЬ КНОПОК ВКЛАДОК НАВИГАЦИИ -NAV_BUTTON_STYLE = """ - NavLabel { - background: qlineargradient(x1:0, y1:0, x2:1, y2:0, - stop:0 rgba(242, 242, 242, 0.5), - stop:1 rgba(232, 232, 232, 0.5)); - padding: 10px 10px; - margin: 10px 0 10px 10px; - color: #333333; - font-size: 16px; - font-family: 'Poppins'; - text-transform: uppercase; - border: 1px solid rgba(179, 179, 179, 0.4); - border-radius: 15px; - } - NavLabel[checked = true] { - background: rgba(0,122,255,0.25); - color: #002244; - font-weight: bold; - border-radius: 15px; - } - NavLabel:hover { - background: qlineargradient(x1:0, y1:0, x2:1, y2:0, - stop:0 rgba(0,122,255,0.12), - stop:1 rgba(0,122,255,0.08)); - color: #002244; - } -""" - -# ГЛОБАЛЬНЫЙ СТИЛЬ ДЛЯ ОКНА (ФОН) И QLabel -MAIN_WINDOW_STYLE = """ - QMainWindow { - background: none; - } - QLabel { - color: #333333; - } -""" - -# СТИЛЬ ПОЛЯ ПОИСКА -SEARCH_EDIT_STYLE = """ - QLineEdit { - background-color: rgba(30, 30, 30, 0.50); - border: 1px solid rgba(255, 255, 255, 0.5); - border-radius: 10px; - padding: 7px 14px; - font-family: 'Poppins'; - font-size: 16px; - color: #ffffff; - } - QLineEdit:focus { - border: 1px solid rgba(0,122,255,0.25); - } -""" - -# ОТКЛЮЧАЕМ РАМКУ У QScrollArea -SCROLL_AREA_STYLE = """ - QWidget { - background: transparent; - } - QScrollBar:vertical { - width: 10px; - border: 0px solid; - border-radius: 5px; - background: rgba(20, 20, 20, 0.30); - } - QScrollBar::handle:vertical { - background: rgba(255, 255, 255, 0.7); - border: 0px solid; - border-radius: 5px; - } - QScrollBar::add-line:vertical { - border: 0px solid; - background: none; - } - QScrollBar::sub-line:vertical { - border: 0px solid; - background: none; - } - QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical { - border: 0px solid; - width: 3px; - height: 3px; - background: none; - } - QScrollBar:horizontal { - height: 10px; - border: 0px solid; - border-radius: 5px; - background: rgba(20, 20, 20, 0.30); - } - QScrollBar::handle:horizontal { - background: #bebebe; - border: 0px solid; - border-radius: 5px; - } - QScrollBar::add-line:horizontal { - border: 0px solid; - background: none; - } - QScrollBar::sub-line:horizontal { - border: 0px solid; - background: none; - } - QScrollBar::up-arrow:horizontal, QScrollBar::down-arrow:horizontal { - border: 0px solid; - width: 3px; - height: 3px; - background: none; - } -""" - -# SLIDER_SIZE_STYLE -SLIDER_SIZE_STYLE= """ - QWidget { - background: transparent; - height: 25px; - } - QSlider::groove:horizontal { - border: 0px solid; - border-radius: 3px; - height: 6px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */ - background: rgba(20, 20, 20, 0.30); - margin: 6px 0; - } - QSlider::handle:horizontal { - background: #bebebe; - border: 0px solid; - width: 18px; - height: 18px; - margin: -6px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */ - border-radius: 9px; - } -""" - -# СТИЛЬ ОБЛАСТИ ДЛЯ КАРТОЧЕК ИГР (QWidget) -LIST_WIDGET_STYLE = """ - QWidget { - background: none; - border: 0px solid rgba(255, 255, 255, 0.10); - border-radius: 25px; - } -""" - -# ЗАГОЛОВОК "БИБЛИОТЕКА" НА ВКЛАДКЕ -INSTALLED_TAB_TITLE_STYLE = "font-family: 'Poppins'; font-size: 24px; color: #232627;" - -# СТИЛЬ КНОПОК "СОХРАНЕНИЯ, ПРИМЕНЕНИЯ И Т.Д." -ACTION_BUTTON_STYLE = """ - QPushButton { - background: qlineargradient(x1:0, y1:0, x2:1, y2:0, - stop:0 rgba(242, 242, 242, 0.5), - stop:1 rgba(232, 232, 232, 0.5)); - border: 1px solid rgba(179, 179, 179, 0.4); - border-radius: 10px; - color: #232627; - font-size: 16px; - font-family: 'Poppins'; - padding: 8px 16px; - } - QPushButton:hover { - background: rgba(0,122,255,0.25); - } - QPushButton:pressed { - background: rgba(0,122,255,0.25); - } -""" - -# ТЕКСТОВЫЕ СТИЛИ: ЗАГОЛОВКИ И ОСНОВНОЙ КОНТЕНТ -TAB_TITLE_STYLE = "font-family: 'Poppins'; font-size: 24px; color: #232627; background-color: none;" -CONTENT_STYLE = """ - QLabel { - font-family: 'Poppins'; - font-size: 16px; - color: #232627; - background-color: none; - border-bottom: 1px solid rgba(165, 165, 165, 0.7); - padding-bottom: 15px; - } -""" - -# СТИЛЬ ОСНОВНЫХ СТРАНИЦ -# LIBRARY_WIDGET_STYLE -LIBRARY_WIDGET_STYLE= """ - QWidget { - background: qlineargradient(spread:pad, x1:0.162, y1:0.0313409, x2:1, y2:1, stop:0 rgba(215, 235, 255, 255), stop:1 rgba(253, 252, 255, 255)); - border-radius: 0px; - } -""" - -# CONTAINER_STYLE -CONTAINER_STYLE= """ - QWidget { - background-color: none; - } -""" - -# OTHER_PAGES_WIDGET_STYLE -OTHER_PAGES_WIDGET_STYLE= """ - QWidget { - background: qlineargradient(spread:pad, x1:0.162, y1:0.0313409, x2:1, y2:1, stop:0 rgba(215, 235, 255, 255), stop:1 rgba(253, 252, 255, 255)); - border-radius: 0px; - } -""" - -# CAROUSEL_WIDGET_STYLE -CAROUSEL_WIDGET_STYLE= """ - QWidget { - background: qlineargradient(spread:pad, x1:0.099, y1:0.119, x2:0.917, y2:0.936149, stop:0 rgba(215, 235, 255, 255), stop:1 rgba(217, 193, 255, 255)); - border-radius: 0px; - } -""" - -# ФОН ДЛЯ ДЕТАЛЬНОЙ СТРАНИЦЫ, ЕСЛИ ОБЛОЖКА НЕ ЗАГРУЖЕНА -DETAIL_PAGE_NO_COVER_STYLE = "background: rgba(20,20,20,0.95); border-radius: 15px;" - -# СТИЛЬ КНОПКИ "ДОБАВИТЬ ИГРУ" И "НАЗАД" НА ДЕТАЛЬНОЙ СТРАНИЦЕ И БИБЛИОТЕКИ -ADDGAME_BACK_BUTTON_STYLE = """ - QPushButton { - background: rgba(20, 20, 20, 0.40); - border: 1px solid rgba(255, 255, 255, 0.5); - border-radius: 10px; - color: #ffffff; - font-size: 16px; - font-family: 'Poppins'; - padding: 4px 16px; - } - QPushButton:hover { - background: rgba(0,122,255,0.25); - } - QPushButton:pressed { - background: rgba(0,122,255,0.25); - } -""" - -# ОСНОВНОЙ ФРЕЙМ ДЕТАЛЕЙ ИГРЫ -DETAIL_CONTENT_FRAME_STYLE = """ - QFrame { - background: qlineargradient(x1:0, y1:0, x2:1, y2:0, - stop:0 rgba(20, 20, 20, 0.40), - stop:1 rgba(20, 20, 20, 0.35)); - border: 0px solid rgba(255, 255, 255, 0.10); - border-radius: 15px; - } -""" - -# ФРЕЙМ ПОД ОБЛОЖКОЙ -COVER_FRAME_STYLE = """ - QFrame { - background: rgba(30, 30, 30, 0.80); - border-radius: 15px; - border: 0px solid rgba(255, 255, 255, 0.15); - } -""" - -# СКРУГЛЕНИЕ LABEL ПОД ОБЛОЖКУ -COVER_LABEL_STYLE = "border-radius: 100px;" - -# ВИДЖЕТ ДЕТАЛЕЙ (ТЕКСТ, ОПИСАНИЕ) -DETAILS_WIDGET_STYLE = "background: rgba(20,20,20,0.40); border-radius: 15px; padding: 10px;" - -# НАЗВАНИЕ (ЗАГОЛОВОК) НА ДЕТАЛЬНОЙ СТРАНИЦЕ -DETAIL_PAGE_TITLE_STYLE = "font-family: 'Orbitron'; font-size: 32px; color: #007AFF;" - -# ЛИНИЯ-РАЗДЕЛИТЕЛЬ -DETAIL_PAGE_LINE_STYLE = "color: rgba(255,255,255,0.12); margin: 10px 0;" - -# ТЕКСТ ОПИСАНИЯ -DETAIL_PAGE_DESC_STYLE = "font-family: 'Poppins'; font-size: 16px; color: #ffffff; line-height: 1.5;" - -# СТИЛЬ КНОПКИ "ИГРАТЬ" -PLAY_BUTTON_STYLE = """ - QPushButton { - background: rgba(20, 20, 20, 0.40); - border: 1px solid rgba(255, 255, 255, 0.5); - border-radius: 10px; - font-size: 18px; - color: #ffffff; - font-weight: bold; - font-family: 'Orbitron'; - padding: 8px 16px; - min-width: 120px; - min-height: 40px; - } - QPushButton:hover { - background: rgba(0,122,255,0.25); - } - QPushButton:pressed { - background: rgba(0,122,255,0.25); - } -""" - -# СТИЛЬ КНОПКИ "ОБЗОР..." В ДИАЛОГЕ "ДОБАВИТЬ ИГРУ" -DIALOG_BROWSE_BUTTON_STYLE = """ - QPushButton { - background: rgba(20, 20, 20, 0.40); - border: 0px solid rgba(255, 255, 255, 0.20); - border-radius: 15px; - color: #ffffff; - font-size: 16px; - padding: 5px 10px; - } - QPushButton:hover { - background: qlineargradient(x1:0, y1:0, x2:1, y2:0, - stop:0 rgba(0,122,255,0.20), - stop:1 rgba(0,122,255,0.15)); - } - QPushButton:pressed { - background: rgba(20, 20, 20, 0.60); - border: 0px solid rgba(255, 255, 255, 0.25); - } -""" - -# СТИЛЬ КАРТОЧКИ ИГРЫ (GAMECARD) -GAME_CARD_WINDOW_STYLE = """ - QFrame { - border-radius: 20px; - background: qlineargradient(x1:0, y1:0, x2:0, y2:1, - stop:0 rgba(255, 255, 255, 0.3), - stop:1 rgba(249, 249, 249, 0.3)); - border: 0px solid rgba(255, 255, 255, 0.4); - } -""" - -# НАЗВАНИЕ В КАРТОЧКЕ (QLabel) -GAME_CARD_NAME_LABEL_STYLE = """ - QLabel { - color: #333333; - font-family: 'Orbitron'; - font-size: 16px; - font-weight: bold; - background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, - stop:0 rgba(242, 242, 242, 0.5), - stop:1 rgba(232, 232, 232, 0.5)); - border-radius: 20px; - padding: 7px; - qproperty-wordWrap: true; - } -""" - -# ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ИНФОРМАЦИИ НА СТРАНИЦЕ ИГР -LAST_LAUNCH_TITLE_STYLE = "font-family: 'Poppins'; font-size: 11px; color: #bbbbbb; text-transform: uppercase; letter-spacing: 0.75px; margin-bottom: 2px;" -LAST_LAUNCH_VALUE_STYLE = "font-family: 'Poppins'; font-size: 13px; color: #ffffff; font-weight: 600; letter-spacing: 0.75px;" -PLAY_TIME_TITLE_STYLE = "font-family: 'Poppins'; font-size: 11px; color: #bbbbbb; text-transform: uppercase; letter-spacing: 0.75px; margin-bottom: 2px;" -PLAY_TIME_VALUE_STYLE = "font-family: 'Poppins'; font-size: 13px; color: #ffffff; font-weight: 600; letter-spacing: 0.75px;" -GAMEPAD_SUPPORT_VALUE_STYLE = """ - font-family: 'Poppins'; font-size: 12px; color: #00ff00; - font-weight: bold; background: rgba(0, 0, 0, 0.3); - border-radius: 5px; padding: 4px 8px; -""" - -# СТИЛИ ПОЛНОЭКРАНОГО ПРЕВЬЮ СКРИНШОТОВ ТЕМЫ -PREV_BUTTON_STYLE="background-color: rgba(0, 0, 0, 0.5); color: white; border: none;" -NEXT_BUTTON_STYLE="background-color: rgba(0, 0, 0, 0.5); color: white; border: none;" -CAPTION_LABEL_STYLE="color: white; font-size: 16px;" - -# СТИЛИ БЕЙДЖА PROTONDB НА КАРТОЧКЕ -def get_protondb_badge_style(tier): - tier = tier.lower() - tier_colors = { - "platinum": {"background": "rgba(255,255,255,0.9)", "color": "black"}, - "gold": {"background": "rgba(253,185,49,0.7)", "color": "black"}, - "silver": {"background": "rgba(169,169,169,0.8)", "color": "black"}, - "bronze": {"background": "rgba(205,133,63,0.7)", "color": "black"}, - "borked": {"background": "rgba(255,0,0,0.7)", "color": "black"}, - "pending": {"background": "rgba(160,82,45,0.7)", "color": "black"} - } - colors = tier_colors.get(tier, {"background": "rgba(0, 0, 0, 0.5)", "color": "white"}) - return f""" - qproperty-alignment: AlignCenter; - background-color: {colors["background"]}; - color: {colors["color"]}; - border-radius: 5px; - font-family: 'Poppins'; - font-weight: bold; - """ - -def get_anticheat_badge_style(status): - status = status.lower() - status_colors = { - "supported": {"background": "rgba(102, 168, 15, 0.7)", "color": "black"}, - "running": {"background": "rgba(25, 113, 194, 0.7)", "color": "black"}, - "planned": {"background": "rgba(156, 54, 181, 0.7)", "color": "black"}, - "broken": {"background": "rgba(232, 89, 12, 0.7)", "color": "black"}, - "denied": {"background": "rgba(224, 49, 49, 0.7)", "color": "black"} - } - colors = status_colors.get(status, {"background": "rgba(0, 0, 0, 0.5)", "color": "white"}) - return f""" - qproperty-alignment: AlignCenter; - background-color: {colors["background"]}; - color: {colors["color"]}; - border-radius: 5px; - font-family: 'Poppins'; - font-weight: bold; - """ - -# СТИЛИ БЕЙДЖА STEAM -STEAM_BADGE_STYLE= """ - qproperty-alignment: AlignCenter; - background: rgba(0, 0, 0, 0.5); - color: white; - border-radius: 5px; - font-family: 'Poppins'; - font-weight: bold; -""" - -# Favorite Star -FAVORITE_LABEL_STYLE = "color: gold; font-size: 32px; background: transparent; border: none;" - -# СТИЛИ ДЛЯ QMessageBox (ОКНА СООБЩЕНИЙ) -MESSAGE_BOX_STYLE = """ - QMessageBox { - background: qlineargradient(x1:0, y1:0, x2:1, y2:0, - stop:0 rgba(40, 40, 40, 0.95), - stop:1 rgba(25, 25, 25, 0.95)); - border: 1px solid rgba(255, 255, 255, 0.15); - border-radius: 12px; - } - QMessageBox QLabel { - color: #ffffff; - font-family: 'Poppins'; - font-size: 16px; - } - QMessageBox QPushButton { - background: rgba(30, 30, 30, 0.6); - border: 1px solid rgba(165, 165, 165, 0.7); - border-radius: 8px; - color: #ffffff; - font-family: 'Poppins'; - padding: 8px 20px; - min-width: 80px; - } - QMessageBox QPushButton:hover { - background: #09bec8; - border-color: rgba(255, 255, 255, 0.3); - } -""" - -# СТИЛИ ДЛЯ ВКЛАДКИ НАСТРОЕК PORTPROTON -# PARAMS_TITLE_STYLE -PARAMS_TITLE_STYLE = "color: #232627; font-family: 'Poppins'; font-size: 16px; padding: 10px; background: transparent;" - -PROXY_INPUT_STYLE = """ - QLineEdit { - background: rgba(20, 20, 20, 0.40); - border: 0px solid rgba(165, 165, 165, 0.7); - border-radius: 10px; - height: 34px; - padding-left: 12px; - color: #ffffff; - font-family: 'Poppins'; - font-size: 16px; - } - QLineEdit:focus { - border: 1px solid rgba(0,122,255,0.25); - } - QMenu { - border: 1px solid rgba(255, 255, 255, 0.5); - padding: 5px 10px; - background: #c7c7c7; - } - QMenu::item { - padding: 0px 10px; - border: 10px solid transparent; /* reserve space for selection border */ - } - QMenu::item:selected { - background: 1px solid rgba(255, 255, 255, 0.5); - border-radius: 10px; - } -""" - -SETTINGS_COMBO_STYLE = f""" - QComboBox {{ - background: rgba(20, 20, 20, 0.40); - border: 1px solid rgba(255, 255, 255, 0.5); - border-radius: 10px; - height: 34px; - padding-left: 12px; - color: #ffffff; - font-family: 'Poppins'; - font-size: 16px; - min-width: 120px; - combobox-popup: 0; - }} - QComboBox:on {{ - background: rgba(20, 20, 20, 0.40); - border: 1px solid rgba(165, 165, 165, 0.7); - border-top-left-radius: 10px; - border-top-right-radius: 10px; - border-bottom-left-radius: 0px; - border-bottom-right-radius: 0px; - }} - QComboBox:hover {{ - border: 1px solid rgba(165, 165, 165, 0.7); - }} - QComboBox::drop-down {{ - subcontrol-origin: padding; - subcontrol-position: center right; - border-left: 1px solid rgba(255, 255, 255, 0.5); - padding: 12px; - height: 12px; - width: 12px; - }} - QComboBox::down-arrow {{ - image: url({theme_manager.get_icon("down", current_theme_name, as_path=True)}); - padding: 12px; - height: 12px; - width: 12px; - }} - QComboBox::down-arrow:on {{ - image: url({theme_manager.get_icon("up", current_theme_name, as_path=True)}); - padding: 12px; - height: 12px; - width: 12px; - }} - QComboBox QAbstractItemView {{ - outline: none; - border: 1px solid rgba(165, 165, 165, 0.7); - border-top-style: none; - }} - QListView {{ - background: #ffffff; - }} - QListView::item {{ - padding: 7px 7px 7px 12px; - border-radius: 0px; - color: #232627; - }} - QListView::item:hover {{ - background: rgba(0,122,255,0.25); - }} - QListView::item:selected {{ - background: rgba(0,122,255,0.25); - }} -""" - -class FileExplorerStyles: - WINDOW_STYLE = """ - QDialog { - background-color: #2d2d2d; - color: #ffffff; - font-family: "Arial"; - font-size: 14px; - } - """ - - PATH_LABEL_STYLE = """ - QLabel { - color: #3daee9; - font-size: 16px; - padding: 5px; - } - """ - - LIST_STYLE = """ - QListWidget { - font-size: 16px; - background-color: #353535; - color: #eee; - border: 1px solid #444; - border-radius: 4px; - } - QListWidget::item { - padding: 8px; - border-bottom: 1px solid #444; - } - QListWidget::item:selected { - background-color: #3daee9; - color: white; - border-radius: 2px; - } - """ - - BUTTON_STYLE = """ - QPushButton { - background-color: #3daee9; - color: white; - border: none; - padding: 8px 16px; - border-radius: 4px; - font-size: 14px; - } - QPushButton:hover { - background-color: #2c9fd8; - } - QPushButton:pressed { - background-color: #1a8fc7; - } - """