mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-14 15:14:51 -04:00
📚 docsstring init
This commit is contained in:
parent
0c61380b10
commit
48e5b42df3
3 changed files with 22 additions and 4 deletions
|
@ -28,7 +28,7 @@ windows_cursors = {
|
|||
|
||||
class Bundler():
|
||||
"""
|
||||
docstring
|
||||
Create crisp package for Bibata Windows & X11 packages 📦.
|
||||
"""
|
||||
|
||||
def __init__(self, name: str, config: ConfigProvider) -> None:
|
||||
|
|
|
@ -21,11 +21,13 @@ with open(path.join(__path__[0], "hotspots.json")) as hotspot_file:
|
|||
|
||||
class ConfigProvider():
|
||||
"""
|
||||
Configure `Bibata` building process.
|
||||
Configure `Bibata` building process 🔧.
|
||||
"""
|
||||
|
||||
def __init__(self, bitmaps_dir: str, out_dir: str) -> None:
|
||||
|
||||
"""
|
||||
docsstring
|
||||
"""
|
||||
# cleanup old packages
|
||||
if path.exists(out_dir):
|
||||
shutil.rmtree(out_dir)
|
||||
|
@ -43,6 +45,9 @@ class ConfigProvider():
|
|||
self.out_dir: str = out_dir
|
||||
|
||||
def get_windows_script(self, theme_name: str) -> str:
|
||||
"""
|
||||
docsstring
|
||||
"""
|
||||
with open(path.join(__path__[0], "windows.inf")) as f:
|
||||
data = f.read()
|
||||
inf_content = data.replace(
|
||||
|
|
|
@ -8,15 +8,21 @@ from clickgen import build_x11_cursor_theme, build_cursor_theme, build_win_curso
|
|||
|
||||
class CursorBuilder():
|
||||
"""
|
||||
Bibata cursors builder 🚀
|
||||
Build Bibata Windows & X11 cursors 🚀.
|
||||
"""
|
||||
|
||||
def __init__(self, name: str, config: ConfigProvider) -> None:
|
||||
"""
|
||||
docstring
|
||||
"""
|
||||
self.__name = name
|
||||
self.__config = config
|
||||
self.__bundler = Bundler(name, config)
|
||||
|
||||
def build_x11_cursors(self) -> None:
|
||||
"""
|
||||
docstring
|
||||
"""
|
||||
print('🌈 Building %s Theme ...' % self.__name)
|
||||
build_x11_cursor_theme(
|
||||
name=self.__name,
|
||||
|
@ -31,6 +37,9 @@ class CursorBuilder():
|
|||
self.__bundler.x11_bundle()
|
||||
|
||||
def build_win_cursors(self) -> None:
|
||||
"""
|
||||
docstring
|
||||
"""
|
||||
print('🌈 Building %s Theme ...' % self.__name)
|
||||
build_win_cursor_theme(
|
||||
name=self.__name,
|
||||
|
@ -45,6 +54,10 @@ class CursorBuilder():
|
|||
self.__bundler.win_bundle()
|
||||
|
||||
def build_cursors(self) -> None:
|
||||
"""
|
||||
docstring
|
||||
"""
|
||||
|
||||
print('🌈 Building %s Theme ...' % self.__name)
|
||||
build_cursor_theme(
|
||||
name=self.__name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue