mirror of
https://github.com/imarkoff/Marble-shell-theme.git
synced 2025-09-30 06:53:23 -07:00
'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:
@@ -68,6 +68,14 @@ class Theme(ThemeBase):
|
||||
self._preparation.add_to_start(content)
|
||||
return self
|
||||
|
||||
def add_from_file(self, content) -> "Theme":
|
||||
"""
|
||||
Adds content from a file to the main styles file.
|
||||
:param content: The path of the file to add.
|
||||
"""
|
||||
self._preparation.add_from_file(content)
|
||||
return self
|
||||
|
||||
def prepare(self):
|
||||
"""Extract theme from source folder and prepare it for installation."""
|
||||
self._preparation.prepare()
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user