diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-15 23:18:06 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-15 23:18:06 +0200 |
commit | e455699fca461e7e73d920a9ebfe557c20a67f98 (patch) | |
tree | 68252cc5d383ad99456479ee9c0bb91ffa9a5c85 /src/sitespec.c | |
parent | a97ab6d5b0c2734476432c18a79533c57298cd6e (diff) |
Site-specific settings
The theme palette seed phrase and ANSI warnings can be configured in the new site-specific settings dialog.
Added bindings for Page Information and for opening the site-specific settings dialog.
IssueID #381
Diffstat (limited to 'src/sitespec.c')
-rw-r--r-- | src/sitespec.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sitespec.c b/src/sitespec.c index 31094981..21edc0a2 100644 --- a/src/sitespec.c +++ b/src/sitespec.c | |||
@@ -268,6 +268,12 @@ void setValueString_SiteSpec(const iString *site, enum iSiteSpecKey key, const i | |||
268 | set_String(¶ms->titanIdentity, value); | 268 | set_String(¶ms->titanIdentity, value); |
269 | } | 269 | } |
270 | break; | 270 | break; |
271 | case paletteSeed_SiteSpecKey: | ||
272 | if (!equal_String(¶ms->paletteSeed, value)) { | ||
273 | needSave = iTrue; | ||
274 | set_String(¶ms->paletteSeed, value); | ||
275 | } | ||
276 | break; | ||
271 | default: | 277 | default: |
272 | break; | 278 | break; |
273 | } | 279 | } |
@@ -339,6 +345,8 @@ const iString *valueString_SiteSpec(const iString *site, enum iSiteSpecKey key) | |||
339 | switch (key) { | 345 | switch (key) { |
340 | case titanIdentity_SiteSpecKey: | 346 | case titanIdentity_SiteSpecKey: |
341 | return ¶ms->titanIdentity; | 347 | return ¶ms->titanIdentity; |
348 | case paletteSeed_SiteSpecKey: | ||
349 | return ¶ms->paletteSeed; | ||
342 | default: | 350 | default: |
343 | return collectNew_String(); | 351 | return collectNew_String(); |
344 | } | 352 | } |