From 1fe20541309f684d97de84b3e902f62e42241fd0 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 30 Sep 2023 10:25:58 +0800 Subject: [PATCH] A | Add theme --- Difficult_Rocket/gui/widget/button.py | 7 ------- Difficult_Rocket/gui/widget/theme.py | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 Difficult_Rocket/gui/widget/theme.py diff --git a/Difficult_Rocket/gui/widget/button.py b/Difficult_Rocket/gui/widget/button.py index 77977e4..7f19c0c 100644 --- a/Difficult_Rocket/gui/widget/button.py +++ b/Difficult_Rocket/gui/widget/button.py @@ -4,13 +4,6 @@ # All rights reserved # ------------------------------- -""" -writen by shenjackyuanjie -mail: 3695888@qq.com -github: @shenjackyuanjie -gitee: @shenjackyuanjie -""" - from typing import Optional, Tuple # from libs import pyglet diff --git a/Difficult_Rocket/gui/widget/theme.py b/Difficult_Rocket/gui/widget/theme.py new file mode 100644 index 0000000..1bd7801 --- /dev/null +++ b/Difficult_Rocket/gui/widget/theme.py @@ -0,0 +1,25 @@ +# ------------------------------- +# Difficult Rocket +# Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com +# All rights reserved +# ------------------------------- + +from typing import Optional, Tuple + +from pyglet.shapes import Rectangle +from pyglet.graphics import Batch, Group + + +class BaseTheme(dict): + """ + Base class of themes + """ + theme_name = 'BaseTheme' + + +class ButtonBaseTheme(BaseTheme): + """ + Base theme of button + """ + theme_name = 'Button Base Theme' +