feat: Add toolbar icon configuration and update handling for Agravity
Some checks are pending
Tests & Quality Checks / Test on Python 3.11 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.10 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-2 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-2 (push) Waiting to run
Tests & Quality Checks / Build Artifacts (push) Blocked by required conditions
Tests & Quality Checks / Build Artifacts-1 (push) Blocked by required conditions
Some checks are pending
Tests & Quality Checks / Test on Python 3.11 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.10 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-2 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-2 (push) Waiting to run
Tests & Quality Checks / Build Artifacts (push) Blocked by required conditions
Tests & Quality Checks / Build Artifacts-1 (push) Blocked by required conditions
This commit is contained in:
parent
eab1009d8c
commit
df76cb9b36
8 changed files with 112 additions and 15 deletions
|
|
@ -106,8 +106,20 @@ These can point at brand-specific files or default shared files:
|
|||
- `banner_bmp`
|
||||
- `license_rtf`
|
||||
|
||||
Optional toolbar icon overrides:
|
||||
|
||||
- `toolbar_icon_home`
|
||||
- `toolbar_icon_reload`
|
||||
- `toolbar_icon_open`
|
||||
- `toolbar_icon_openwith`
|
||||
|
||||
If a referenced asset path does not exist, the helper falls back to the default asset defined in `build/scripts/brand_config.py`.
|
||||
|
||||
For toolbar icons, the runtime looks for the configured paths in packaged and development layouts. If an icon is missing:
|
||||
|
||||
- Home falls back to a standard Qt home icon
|
||||
- Reload/Open/OpenWith keep their existing icon behavior
|
||||
|
||||
### Identity Rules
|
||||
|
||||
Treat these values as long-lived product identity once a brand has shipped:
|
||||
|
|
@ -163,6 +175,13 @@ Relevant runtime config keys include:
|
|||
- `update_channel`
|
||||
- `update_manifest_name`
|
||||
|
||||
Toolbar icon env overrides (useful for packaged branding):
|
||||
|
||||
- `TOOLBAR_ICON_HOME`
|
||||
- `TOOLBAR_ICON_RELOAD`
|
||||
- `TOOLBAR_ICON_OPEN`
|
||||
- `TOOLBAR_ICON_OPENWITH`
|
||||
|
||||
The current example in `config.example.json` shows the Agravity runtime setup.
|
||||
|
||||
When adding a new brand, make sure the runtime config matches the packaging manifest at least for:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue