A | Add theme
This commit is contained in:
parent
3dab607d19
commit
1fe2054130
@ -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
|
||||
|
25
Difficult_Rocket/gui/widget/theme.py
Normal file
25
Difficult_Rocket/gui/widget/theme.py
Normal file
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user