diff --git a/portprotonqt/main_window.py b/portprotonqt/main_window.py index cbdb7910..31b55b26 100644 --- a/portprotonqt/main_window.py +++ b/portprotonqt/main_window.py @@ -301,12 +301,12 @@ class MainWindow(QMainWindow): def makeHint(icon_name: str, action_text: str, is_gamepad: bool, action: str | None = None,): container = QWidget() layout = QHBoxLayout(container) - layout.setContentsMargins(0, 0, 0, 0) + layout.setContentsMargins(0, 5, 0, 0) layout.setSpacing(6) # иконка кнопки icon_label = QLabel() - icon_label.setFixedSize(32, 32) + icon_label.setFixedSize(26, 26) icon_label.setAlignment(Qt.AlignmentFlag.AlignCenter) pixmap = QPixmap() @@ -319,7 +319,7 @@ class MainWindow(QMainWindow): if not pixmap.isNull(): icon_label.setPixmap(pixmap.scaled( - 32, 32, + 26, 26, Qt.AspectRatioMode.KeepAspectRatio, Qt.TransformationMode.SmoothTransformation )) @@ -412,7 +412,7 @@ class MainWindow(QMainWindow): pixmap.load(str(icon_path)) if not pixmap.isNull(): icon_label.setPixmap(pixmap.scaled( - 32, 32, + 26, 26, Qt.AspectRatioMode.KeepAspectRatio, Qt.TransformationMode.SmoothTransformation )) @@ -421,7 +421,7 @@ class MainWindow(QMainWindow): placeholder = self.theme_manager.get_theme_image("placeholder", self.current_theme_name) if placeholder: pixmap.load(str(placeholder)) - icon_label.setPixmap(pixmap.scaled(32, 32, Qt.AspectRatioMode.KeepAspectRatio, Qt.TransformationMode.SmoothTransformation)) + icon_label.setPixmap(pixmap.scaled(26, 26, Qt.AspectRatioMode.KeepAspectRatio, Qt.TransformationMode.SmoothTransformation)) else: container.setVisible(False) else: # Keyboard hint diff --git a/portprotonqt/themes/standart/images/key_backspace.png b/portprotonqt/themes/standart/images/key_backspace.png deleted file mode 100644 index 425addcb..00000000 Binary files a/portprotonqt/themes/standart/images/key_backspace.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/key_backspace.svg b/portprotonqt/themes/standart/images/key_backspace.svg new file mode 100644 index 00000000..1e09c935 --- /dev/null +++ b/portprotonqt/themes/standart/images/key_backspace.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/key_context.png b/portprotonqt/themes/standart/images/key_context.png deleted file mode 100644 index 03014ef5..00000000 Binary files a/portprotonqt/themes/standart/images/key_context.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/key_context.svg b/portprotonqt/themes/standart/images/key_context.svg new file mode 100644 index 00000000..0d56e955 --- /dev/null +++ b/portprotonqt/themes/standart/images/key_context.svg @@ -0,0 +1,48 @@ + + diff --git a/portprotonqt/themes/standart/images/key_e.png b/portprotonqt/themes/standart/images/key_e.png deleted file mode 100644 index cd95f3bc..00000000 Binary files a/portprotonqt/themes/standart/images/key_e.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/key_e.svg b/portprotonqt/themes/standart/images/key_e.svg new file mode 100644 index 00000000..b659fadb --- /dev/null +++ b/portprotonqt/themes/standart/images/key_e.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/key_enter.png b/portprotonqt/themes/standart/images/key_enter.png deleted file mode 100644 index d9d29118..00000000 Binary files a/portprotonqt/themes/standart/images/key_enter.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/key_enter.svg b/portprotonqt/themes/standart/images/key_enter.svg new file mode 100644 index 00000000..fef96adc --- /dev/null +++ b/portprotonqt/themes/standart/images/key_enter.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/key_f11.png b/portprotonqt/themes/standart/images/key_f11.png deleted file mode 100644 index 10be86ff..00000000 Binary files a/portprotonqt/themes/standart/images/key_f11.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/key_f11.svg b/portprotonqt/themes/standart/images/key_f11.svg new file mode 100644 index 00000000..083d34bd --- /dev/null +++ b/portprotonqt/themes/standart/images/key_f11.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/key_left.png b/portprotonqt/themes/standart/images/key_left.png deleted file mode 100644 index e199d9c0..00000000 Binary files a/portprotonqt/themes/standart/images/key_left.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/key_left.svg b/portprotonqt/themes/standart/images/key_left.svg new file mode 100644 index 00000000..c295c5ba --- /dev/null +++ b/portprotonqt/themes/standart/images/key_left.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/key_right.png b/portprotonqt/themes/standart/images/key_right.png deleted file mode 100644 index b8c71f2b..00000000 Binary files a/portprotonqt/themes/standart/images/key_right.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/key_right.svg b/portprotonqt/themes/standart/images/key_right.svg new file mode 100644 index 00000000..c20f1ada --- /dev/null +++ b/portprotonqt/themes/standart/images/key_right.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/ps_circle.png b/portprotonqt/themes/standart/images/ps_circle.png deleted file mode 100644 index f84f7efa..00000000 Binary files a/portprotonqt/themes/standart/images/ps_circle.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/ps_circle.svg b/portprotonqt/themes/standart/images/ps_circle.svg new file mode 100644 index 00000000..0cea7fc5 --- /dev/null +++ b/portprotonqt/themes/standart/images/ps_circle.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/ps_cross.png b/portprotonqt/themes/standart/images/ps_cross.png deleted file mode 100644 index de8039c7..00000000 Binary files a/portprotonqt/themes/standart/images/ps_cross.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/ps_cross.svg b/portprotonqt/themes/standart/images/ps_cross.svg new file mode 100644 index 00000000..74270d86 --- /dev/null +++ b/portprotonqt/themes/standart/images/ps_cross.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/ps_l1.png b/portprotonqt/themes/standart/images/ps_l1.png deleted file mode 100644 index 709677fe..00000000 Binary files a/portprotonqt/themes/standart/images/ps_l1.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/ps_l1.svg b/portprotonqt/themes/standart/images/ps_l1.svg new file mode 100644 index 00000000..dc0ef171 --- /dev/null +++ b/portprotonqt/themes/standart/images/ps_l1.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/ps_options.png b/portprotonqt/themes/standart/images/ps_options.png deleted file mode 100644 index 0a87765f..00000000 Binary files a/portprotonqt/themes/standart/images/ps_options.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/ps_options.svg b/portprotonqt/themes/standart/images/ps_options.svg new file mode 100644 index 00000000..6b6e9854 --- /dev/null +++ b/portprotonqt/themes/standart/images/ps_options.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/ps_r1.png b/portprotonqt/themes/standart/images/ps_r1.png deleted file mode 100644 index 78a9be3b..00000000 Binary files a/portprotonqt/themes/standart/images/ps_r1.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/ps_r1.svg b/portprotonqt/themes/standart/images/ps_r1.svg new file mode 100644 index 00000000..76d0ad6f --- /dev/null +++ b/portprotonqt/themes/standart/images/ps_r1.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/ps_share.png b/portprotonqt/themes/standart/images/ps_share.png deleted file mode 100644 index 428f031d..00000000 Binary files a/portprotonqt/themes/standart/images/ps_share.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/ps_share.svg b/portprotonqt/themes/standart/images/ps_share.svg new file mode 100644 index 00000000..1e8b198a --- /dev/null +++ b/portprotonqt/themes/standart/images/ps_share.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/ps_triangle.png b/portprotonqt/themes/standart/images/ps_triangle.png deleted file mode 100644 index c8b579a9..00000000 Binary files a/portprotonqt/themes/standart/images/ps_triangle.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/ps_triangle.svg b/portprotonqt/themes/standart/images/ps_triangle.svg new file mode 100644 index 00000000..c3defddc --- /dev/null +++ b/portprotonqt/themes/standart/images/ps_triangle.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/xbox_a.png b/portprotonqt/themes/standart/images/xbox_a.png deleted file mode 100644 index a058ddc9..00000000 Binary files a/portprotonqt/themes/standart/images/xbox_a.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/xbox_a.svg b/portprotonqt/themes/standart/images/xbox_a.svg new file mode 100644 index 00000000..86798f2d --- /dev/null +++ b/portprotonqt/themes/standart/images/xbox_a.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/xbox_b.png b/portprotonqt/themes/standart/images/xbox_b.png deleted file mode 100644 index 0c21c3f1..00000000 Binary files a/portprotonqt/themes/standart/images/xbox_b.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/xbox_b.svg b/portprotonqt/themes/standart/images/xbox_b.svg new file mode 100644 index 00000000..8ba57ed9 --- /dev/null +++ b/portprotonqt/themes/standart/images/xbox_b.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/xbox_lb.png b/portprotonqt/themes/standart/images/xbox_lb.png deleted file mode 100644 index 70e528c7..00000000 Binary files a/portprotonqt/themes/standart/images/xbox_lb.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/xbox_lb.svg b/portprotonqt/themes/standart/images/xbox_lb.svg new file mode 100644 index 00000000..8c9c1720 --- /dev/null +++ b/portprotonqt/themes/standart/images/xbox_lb.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/xbox_rb.png b/portprotonqt/themes/standart/images/xbox_rb.png deleted file mode 100644 index a05fd574..00000000 Binary files a/portprotonqt/themes/standart/images/xbox_rb.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/xbox_rb.svg b/portprotonqt/themes/standart/images/xbox_rb.svg new file mode 100644 index 00000000..622c656e --- /dev/null +++ b/portprotonqt/themes/standart/images/xbox_rb.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/xbox_start.png b/portprotonqt/themes/standart/images/xbox_start.png deleted file mode 100644 index 835c2ff3..00000000 Binary files a/portprotonqt/themes/standart/images/xbox_start.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/xbox_start.svg b/portprotonqt/themes/standart/images/xbox_start.svg new file mode 100644 index 00000000..c7d9f13b --- /dev/null +++ b/portprotonqt/themes/standart/images/xbox_start.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/xbox_view.png b/portprotonqt/themes/standart/images/xbox_view.png deleted file mode 100644 index 31e644ca..00000000 Binary files a/portprotonqt/themes/standart/images/xbox_view.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/xbox_view.svg b/portprotonqt/themes/standart/images/xbox_view.svg new file mode 100644 index 00000000..ef67aa8e --- /dev/null +++ b/portprotonqt/themes/standart/images/xbox_view.svg @@ -0,0 +1 @@ + diff --git a/portprotonqt/themes/standart/images/xbox_x.png b/portprotonqt/themes/standart/images/xbox_x.png deleted file mode 100644 index 4761f038..00000000 Binary files a/portprotonqt/themes/standart/images/xbox_x.png and /dev/null differ diff --git a/portprotonqt/themes/standart/images/xbox_x.svg b/portprotonqt/themes/standart/images/xbox_x.svg new file mode 100644 index 00000000..5c732c82 --- /dev/null +++ b/portprotonqt/themes/standart/images/xbox_x.svg @@ -0,0 +1 @@ +