classic theme: optional - if the theme is "classic", the back button is not created on the detail page

This commit is contained in:
Dervart committed 2026-05-07 09:51:12 +07:00
1 parent 6f946c547a
commit 2e183f9c24
1 file changed
+4 -1
+4 -1
View File
@@ -71,7 +71,10 @@ def create_back_button(
theme_manager,
on_click: Callable[..., None],
) -> AutoSizeButton:
"""Create back button with standard styling."""
"""Create back button with standard styling, but not for classic theme."""
if theme.current_theme_name == "classic":
return None
back_button = AutoSizeButton(_("Back"), icon=theme_manager.get_icon("back"))
back_button.setFixedWidth(100)
back_button.setStyleSheet(theme.ADDGAME_BACK_BUTTON_STYLE)