6 Commits

Author SHA1 Message Date
b234d042eb Merge pull request 'refactor: remove theme from ztools, move to base distribution' (#3) from feat/sdk-migration into main
Reviewed-on: #3
2026-02-19 20:53:58 +00:00
forbes
08e439b9ca refactor: remove theme from ztools, move to base distribution
- Delete CatppuccinMocha preference pack (redundant with KindredCreate)
- Delete theme.py (generate_stylesheet never called; apply_spreadsheet_colors
  was a no-op due to SetUnsigned vs GetASCII type mismatch)
- Remove preferencepack declaration from package.xml
- Remove apply_spreadsheet_colors call from InitGui.py Activated()
- Clean up resources/__init__.py exports

Spreadsheet colors are now set via KindredCreate.cfg preference pack
using FCText entries that match the C++ GetASCII() reader.

Part of #278
2026-02-19 14:50:15 -06:00
4e01fdf68b Merge pull request 'refactor: migrate to kindred-addon-sdk for theme tokens' (#2) from feat/migrate-to-sdk into main
Reviewed-on: #2
2026-02-17 17:01:20 +00:00
55be41e697 refactor: migrate to kindred-addon-sdk for theme tokens (#250)
Replace hardcoded MOCHA dict with kindred_sdk.get_theme_tokens().
Add sdk dependency to package.xml <kindred> element.
2026-02-17 08:59:39 -06:00
29ca89e533 feat: add <kindred> element to package.xml
Declares min_create_version=0.1.0, load_priority=50, pure_python=true,
and documents partdesign.body/feature context injection.
2026-02-16 14:03:27 -06:00
forbes
ef16ecbaa2 fix: viewport background gradient — Overlay0/Mantle 3-color gradient (#188)
Change viewport background from 2-color Base→Crust gradient to
3-color Overlay0→Mantle→Overlay0 gradient for better visual depth.
2026-02-14 13:03:37 -06:00
3 changed files with 8 additions and 29 deletions

View File

@@ -27,6 +27,10 @@
<dependencies>
<dependency>sdk</dependency>
</dependencies>
<contexts>
<context id="partdesign.body" action="inject"/>
<context id="partdesign.feature" action="inject"/>
</contexts>
</kindred>
</package>

View File

@@ -1,35 +1,10 @@
# ztools/resources/icons.py
# Catppuccin Mocha themed icons for ztools
# Catppuccin Mocha Palette
MOCHA = {
"rosewater": "#f5e0dc",
"flamingo": "#f2cdcd",
"pink": "#f5c2e7",
"mauve": "#cba6f7",
"red": "#f38ba8",
"maroon": "#eba0ac",
"peach": "#fab387",
"yellow": "#f9e2af",
"green": "#a6e3a1",
"teal": "#94e2d5",
"sky": "#89dceb",
"sapphire": "#74c7ec",
"blue": "#89b4fa",
"lavender": "#b4befe",
"text": "#cdd6f4",
"subtext1": "#bac2de",
"subtext0": "#a6adc8",
"overlay2": "#9399b2",
"overlay1": "#7f849c",
"overlay0": "#6c7086",
"surface2": "#585b70",
"surface1": "#45475a",
"surface0": "#313244",
"base": "#1e1e2e",
"mantle": "#181825",
"crust": "#11111b",
}
# Catppuccin Mocha Palette — sourced from kindred-addon-sdk
from kindred_sdk.theme import get_theme_tokens
MOCHA = get_theme_tokens()
def _svg_to_base64(svg_content: str) -> str: