'border' as panel button border, add_from_file method

- Use 'border' as panel button border, not 'box-shadow';
- Added add_from_file method to ThemePreparation.
This commit is contained in:
Vladyslav Hroshev
2025-04-16 15:53:36 +03:00
parent 1ff3f6e17b
commit 408fe473ee
8 changed files with 43 additions and 29 deletions

View File

@@ -40,6 +40,15 @@ class ThemePreparation:
self.style_manager.prepend_content(content)
return self
def add_from_file(self, content) -> "ThemePreparation":
"""
Adds content from a file to the main styles file.
:param content: The path of the file to add.
"""
with open(content, "r") as f:
self.style_manager.append_content(f.read())
return self
def prepare(self):
"""
Extract theme from source folder and prepare it for installation.