Commit 90be8b7159
Verified · cmc
Layout: unified · split
Sources/Orgstar/ThemePickerSection.swift +1 −1
| @@ -20,7 +20,7 @@ struct ThemePickerSection: View { | |||
| 20 | } header: { | 20 | } header: { |
| 21 | Text("Theme") | 21 | Text("Theme") |
| 22 | } footer: { | 22 | } footer: { |
| 23 | Text(message ?? "Colors set in config.toml or in the theme file apply on top of these.") | 23 | Text(message ?? String(localized: "Colors set in config.toml or in the theme file apply on top of these.")) |
| 24 | .settingsFooter() | 24 | .settingsFooter() |
| 25 | } | 25 | } |
| 26 | } | 26 | } |
docs/manual/guide/02-the-editor.org +3 −1
| @@ -338,7 +338,9 @@ In the relative and visual kinds the caret's line shows its own number, as =disp | |||
| 338 | 338 | ||
| 339 | * Themes | 339 | * Themes |
| 340 | 340 | ||
| 341 | The editor's font, size, line spacing and heading sizes are in Settings ▸ Appearance. Colours for the editor, the sidebar, the modeline, line numbers, the selection and the caret come from =config.toml=, under =[theme]= for both appearances, =[theme.light]= and =[theme.dark]= for one, and =[theme.todo]= for colours of TODO keywords. Settings ▸ Appearance ▸ Show Default Theme opens =default-theme.toml=, which lists every colour with its default value. Changes apply while orgstar runs. See [[file:13-configuration.org][Configuration]]. | 341 | The editor's font, size, line spacing and heading sizes are in Settings ▸ Appearance. Settings ▸ Appearance ▸ Theme chooses a built-in theme for the light appearance and one for the dark: Default, Solarized Light, Gruvbox Light, Modus Operandi, Catppuccin Latte, Tomorrow or Paper; and Default, Solarized Dark, Gruvbox Dark, Modus Vivendi, Catppuccin Mocha, Nord, Dracula, Tokyo Night or doom-one. They are =light-theme= and =dark-theme= under =[theme]= in =config.toml=. Colours set in =config.toml=, under =[theme]= for both appearances, =[theme.light]= and =[theme.dark]= for one and =[theme.todo]= for TODO keywords, apply on top, as do those of a theme file named by =theme-file=. Copy to Config Folder writes the two chosen themes, every colour, into =my-theme.toml= and makes it the theme file, to start a theme of your own. Show Default Theme opens =default-theme.toml=, which lists every colour with its default value. Changes apply while orgstar runs. See [[file:13-configuration.org][Configuration]]. |
| 342 | |||
| 343 | Settings ▸ Appearance ▸ App Icon chooses the icon the Dock shows while orgstar runs. Finder, and the Dock once orgstar has quit, show the default icon, in the system's icon style (Default, Dark or Tinted). | ||
| 342 | 344 | ||
| 343 | The iOS editor uses the same theme and display settings, read from the synced =config.toml=; see [[file:14-ios.org][iPhone and iPad]]. | 345 | The iOS editor uses the same theme and display settings, read from the synced =config.toml=; see [[file:14-ios.org][iPhone and iPad]]. |
| 344 | 346 | ||
docs/manual/guide/13-configuration.org +13 −2
| @@ -102,6 +102,10 @@ orgstar's menus, settings and agenda are in English and German, and follow the l | |||
| 102 | 102 | ||
| 103 | | Control | Range | Default | Key | | 103 | | Control | Range | Default | Key | |
| 104 | |---------------------------------+-----------------------------------------------+--------------------+---------------------| | 104 | |---------------------------------+-----------------------------------------------+--------------------+---------------------| |
| 105 | | Theme: Light | A built-in light theme | Default | =light-theme= | | ||
| 106 | | Theme: Dark | A built-in dark theme | Default | =dark-theme= | | ||
| 107 | | Theme: Copy to Config Folder | Writes =my-theme.toml= and makes it =theme-file= | | | | ||
| 108 | | App Icon | One of 13 icons, shown in the Dock while orgstar runs | Default | (this Mac only) | | ||
| 105 | | Font | System monospaced, or any installed monospaced family | System monospaced | =font= | | 109 | | Font | System monospaced, or any installed monospaced family | System monospaced | =font= | |
| 106 | | Body text | Same as Font, System, or any installed proportional family | Same as Font | =body-font= | | 110 | | Body text | Same as Font, System, or any installed proportional family | Same as Font | =body-font= | |
| 107 | | Size | 8 to 36 pt | 13 pt | =font-size= | | 111 | | Size | 8 to 36 pt | 13 pt | =font-size= | |
| @@ -367,6 +371,8 @@ Publishing projects, one table each, as =org-publish-project-alist= has them. Th | |||
| 367 | | =line-spacing= | integer | =2= | Points between lines. | | 371 | | =line-spacing= | integer | =2= | Points between lines. | |
| 368 | | =text-width= | integer | =0= | The widest the text runs, in columns of =font=, centred in a wider editor. =0= uses the whole width. | | 372 | | =text-width= | integer | =0= | The widest the text runs, in columns of =font=, centred in a wider editor. =0= uses the whole width. | |
| 369 | | =heading-size-step= | integer | =1= | Points a heading is larger than the level below. Level 4 and deeper are body size. | | 373 | | =heading-size-step= | integer | =1= | Points a heading is larger than the level below. Level 4 and deeper are body size. | |
| 374 | | =light-theme= | string | ="default-light"= | The built-in theme for light appearance: =default-light=, =solarized-light=, =gruvbox-light=, =modus-operandi=, =catppuccin-latte=, =tomorrow= or =paper=. | | ||
| 375 | | =dark-theme= | string | ="default-dark"= | The built-in theme for dark appearance: =default-dark=, =solarized-dark=, =gruvbox-dark=, =modus-vivendi=, =catppuccin-mocha=, =nord=, =dracula=, =tokyo-night= or =doom-one=. | | ||
| 370 | | =theme-file= | string | =""= | A theme in its own file in the configuration folder, applied under the colors in =config.toml=. | | 376 | | =theme-file= | string | =""= | A theme in its own file in the configuration folder, applied under the colors in =config.toml=. | |
| 371 | 377 | ||
| 372 | Any other key in =[theme]= is a color; see Themes below. | 378 | Any other key in =[theme]= is a color; see Themes below. |
| @@ -643,7 +649,11 @@ Key bindings are imported when the command is one orgstar has a counterpart for, | |||
| 643 | 649 | ||
| 644 | * Themes | 650 | * Themes |
| 645 | 651 | ||
| 646 | orgstar has one built-in theme, the default theme, with light and dark colors after GitHub's light and dark themes for text and code. TODO keywords, priorities and the agenda's statuses use the system's red, orange, blue and green, as iOS and macOS show them. You change it by setting colors in =config.toml=, or by keeping a theme in its own file. | 652 | The default theme has light and dark colors after GitHub's light and dark themes for text and code. TODO keywords, priorities and the agenda's statuses use the system's red, orange, blue and green, as iOS and macOS show them. It leaves the sidebar, the modeline, the agenda's background and the accent of buttons and toggles to the system. |
| 653 | |||
| 654 | =light-theme= and =dark-theme= choose a built-in theme for each appearance instead (Settings ▸ Appearance ▸ Theme). The light themes are Default, Solarized Light, Gruvbox Light, Modus Operandi, Catppuccin Latte, Tomorrow and Paper; the dark themes are Default, Solarized Dark, Gruvbox Dark, Modus Vivendi, Catppuccin Mocha, Nord, Dracula, Tokyo Night and doom-one. Every one but Default sets every color key, the sidebar, modeline, agenda and accent included. An unknown name, or one of the other appearance, is reported and Default is used. | ||
| 655 | |||
| 656 | You change any of them by setting colors in =config.toml=, or by keeping a theme in its own file. Copy to Config Folder writes the two chosen themes, every color written out, into =my-theme.toml= and sets =theme-file= to it; it leaves an existing =my-theme.toml= as it is. | ||
| 647 | 657 | ||
| 648 | Colors are strings in the form ="#rrggbb"= or ="#rrggbbaa"=. They go in these tables: | 658 | Colors are strings in the form ="#rrggbb"= or ="#rrggbbaa"=. They go in these tables: |
| 649 | 659 | ||
| @@ -696,7 +706,7 @@ To keep a theme in its own file, put it in the configuration folder with the sam | |||
| 696 | theme-file = "solarized.toml" | 706 | theme-file = "solarized.toml" |
| 697 | #+END_SRC | 707 | #+END_SRC |
| 698 | 708 | ||
| 699 | The colors stack in this order, each over the one before: the default theme, the theme file, then the colors in =config.toml=. The path is relative to the configuration folder and may name a subfolder, as =themes/solarized.toml=. orgstar reloads the theme file when it changes. Only colors are read from a theme file; =font= and the other type keys in its =[theme]= table are ignored. | 709 | The colors stack in this order, each over the one before: the themes chosen with =light-theme= and =dark-theme=, the theme file, then the colors in =config.toml=. The path is relative to the configuration folder and may name a subfolder, as =themes/solarized.toml=. orgstar reloads the theme file when it changes. Only colors are read from a theme file; =font= and the other type keys in its =[theme]= table are ignored. |
| 700 | 710 | ||
| 701 | ** Color keys | 711 | ** Color keys |
| 702 | 712 | ||
| @@ -706,6 +716,7 @@ The colors stack in this order, each over the one before: the default theme, the | |||
| 706 | | =foreground= | body text | | 716 | | =foreground= | body text | |
| 707 | | =cursor= | the caret | | 717 | | =cursor= | the caret | |
| 708 | | =selection= | selected text's background | | 718 | | =selection= | selected text's background | |
| 719 | | =accent= | buttons, toggles and selection in lists; unset: the system's | | ||
| 709 | | =heading-1= … =heading-7= | headings of that level | | 720 | | =heading-1= … =heading-7= | headings of that level | |
| 710 | | =heading-8= | level 8 and deeper headings | | 721 | | =heading-8= | level 8 and deeper headings | |
| 711 | | =todo= | TODO keywords not yet done | | 722 | | =todo= | TODO keywords not yet done | |
docs/manual/guide/14-ios.org +4 −2
| @@ -80,7 +80,9 @@ Files that aren't valid UTF-8 open read-only; commands that would change them sa | |||
| 80 | 80 | ||
| 81 | ** Themes and display | 81 | ** Themes and display |
| 82 | 82 | ||
| 83 | The editor and the reader use the theme set in the configuration folder's =config.toml=, stacked as on the Mac: the default theme, then the theme file named by =theme-file=, then the colours in =[theme]=, =[theme.light]=, =[theme.dark]=, =[theme.todo]= and =[theme.category]=. A TODO keyword without a colour in =[theme.todo]= takes its class's colour: =todo-next= for =NEXT= and =STRT=, =todo-waiting= for =WAIT= and =HOLD=, =todo-cancelled= for =KILL= and =CANCELLED=, and so on (see [[file:13-configuration.org][Configuration]] for the lists). Colours follow the system's light or dark appearance. Problems in the theme show in the Settings tab with the other problems. A change to =config.toml= or the theme file applies as it syncs, to open editors too. See [[file:13-configuration.org][Configuration]] for the colour keys. | 83 | The editor and the reader use the theme set in the configuration folder's =config.toml=, stacked as on the Mac: the themes chosen with =light-theme= and =dark-theme=, then the theme file named by =theme-file=, then the colours in =[theme]=, =[theme.light]=, =[theme.dark]=, =[theme.todo]= and =[theme.category]=. A TODO keyword without a colour in =[theme.todo]= takes its class's colour: =todo-next= for =NEXT= and =STRT=, =todo-waiting= for =WAIT= and =HOLD=, =todo-cancelled= for =KILL= and =CANCELLED=, and so on (see [[file:13-configuration.org][Configuration]] for the lists). Colours follow the system's light or dark appearance. Problems in the theme show in the Settings tab with the other problems. A change to =config.toml= or the theme file applies as it syncs, to open editors too. See [[file:13-configuration.org][Configuration]] for the colour keys. |
| 84 | |||
| 85 | Settings ▸ Light Theme and Dark Theme choose the built-in themes, shown as a few lines of Org in each theme's colours; with a configuration folder the choice is written to its =config.toml=, so the Mac uses it too. Settings ▸ App Icon chooses the home screen icon from the same thirteen as the Mac; iOS confirms the change. The icon is chosen per device. | ||
| 84 | 86 | ||
| 85 | - Font :: =font= when that family is installed on the device, otherwise the system's monospaced font. =body-font=, when set, is used for prose as on the Mac. | 87 | - Font :: =font= when that family is installed on the device, otherwise the system's monospaced font. =body-font=, when set, is used for prose as on the Mac. |
| 86 | - Size :: =font-size= is the size at the default Dynamic Type setting, 13 pt by default. Text grows and shrinks with the text size chosen in the system Settings app. | 88 | - Size :: =font-size= is the size at the default Dynamic Type setting, 13 pt by default. Text grows and shrinks with the text size chosen in the system Settings app. |
| @@ -395,7 +397,7 @@ The Agenda, TODO Dependencies, Calendar and Reminders sections are the only plac | |||
| 395 | 397 | ||
| 396 | These write =config.toml= in the configuration folder, as the Mac's Settings window does, so the Mac sees the change too. Without a configuration folder they are kept on the device. | 398 | These write =config.toml= in the configuration folder, as the Mac's Settings window does, so the Mac sees the change too. Without a configuration folder they are kept on the device. |
| 397 | 399 | ||
| 398 | The In use section shows the TODO keywords, the agenda span and start (for example =10 days, starting today=), the reminder lead time, the capture template keys, the theme (=Default=, or the theme file's name), and the font with its size. When =font= names a family that isn't installed on the device, Font shows the system's font with a note, as =System monospaced, 13 pt (JetBrains Mono isn't installed)=. | 400 | The In use section shows the TODO keywords, the agenda span and start (for example =10 days, starting today=), the reminder lead time, the capture template keys, the light and dark themes, and the theme file's name when there is one, and the font with its size. When =font= names a family that isn't installed on the device, Font shows the system's font with a note, as =System monospaced, 13 pt (JetBrains Mono isn't installed)=. |
| 399 | 401 | ||
| 400 | These settings from =config.toml= apply on iOS: | 402 | These settings from =config.toml= apply on iOS: |
| 401 | 403 | ||
l10n/Localizable.xcstrings +110
| @@ -512,6 +512,16 @@ | |||
| 512 | } | 512 | } |
| 513 | } | 513 | } |
| 514 | }, | 514 | }, |
| 515 | "App Icon": { | ||
| 516 | "localizations": { | ||
| 517 | "de": { | ||
| 518 | "stringUnit": { | ||
| 519 | "state": "translated", | ||
| 520 | "value": "App-Symbol" | ||
| 521 | } | ||
| 522 | } | ||
| 523 | } | ||
| 524 | }, | ||
| 515 | "Appearance": { | 525 | "Appearance": { |
| 516 | "localizations": { | 526 | "localizations": { |
| 517 | "de": { | 527 | "de": { |
| @@ -1294,6 +1304,16 @@ | |||
| 1294 | } | 1304 | } |
| 1295 | } | 1305 | } |
| 1296 | }, | 1306 | }, |
| 1307 | "Colors set in config.toml or in the theme file apply on top of these.": { | ||
| 1308 | "localizations": { | ||
| 1309 | "de": { | ||
| 1310 | "stringUnit": { | ||
| 1311 | "state": "translated", | ||
| 1312 | "value": "Farben aus config.toml oder aus der Themendatei gelten zusätzlich zu diesen." | ||
| 1313 | } | ||
| 1314 | } | ||
| 1315 | } | ||
| 1316 | }, | ||
| 1297 | "Column": { | 1317 | "Column": { |
| 1298 | "localizations": { | 1318 | "localizations": { |
| 1299 | "de": { | 1319 | "de": { |
| @@ -1404,6 +1424,16 @@ | |||
| 1404 | } | 1424 | } |
| 1405 | } | 1425 | } |
| 1406 | }, | 1426 | }, |
| 1427 | "Copied to my-theme.toml, now the theme file.": { | ||
| 1428 | "localizations": { | ||
| 1429 | "de": { | ||
| 1430 | "stringUnit": { | ||
| 1431 | "state": "translated", | ||
| 1432 | "value": "In my-theme.toml kopiert, jetzt die Themendatei." | ||
| 1433 | } | ||
| 1434 | } | ||
| 1435 | } | ||
| 1436 | }, | ||
| 1407 | "Copy": { | 1437 | "Copy": { |
| 1408 | "localizations": { | 1438 | "localizations": { |
| 1409 | "de": { | 1439 | "de": { |
| @@ -1424,6 +1454,16 @@ | |||
| 1424 | } | 1454 | } |
| 1425 | } | 1455 | } |
| 1426 | }, | 1456 | }, |
| 1457 | "Copy to Config Folder": { | ||
| 1458 | "localizations": { | ||
| 1459 | "de": { | ||
| 1460 | "stringUnit": { | ||
| 1461 | "state": "translated", | ||
| 1462 | "value": "In den Konfigurationsordner kopieren" | ||
| 1463 | } | ||
| 1464 | } | ||
| 1465 | } | ||
| 1466 | }, | ||
| 1427 | "Couldn't change the file": { | 1467 | "Couldn't change the file": { |
| 1428 | "localizations": { | 1468 | "localizations": { |
| 1429 | "de": { | 1469 | "de": { |
| @@ -1474,6 +1514,26 @@ | |||
| 1474 | } | 1514 | } |
| 1475 | } | 1515 | } |
| 1476 | }, | 1516 | }, |
| 1517 | "Dark": { | ||
| 1518 | "localizations": { | ||
| 1519 | "de": { | ||
| 1520 | "stringUnit": { | ||
| 1521 | "state": "translated", | ||
| 1522 | "value": "Dunkel" | ||
| 1523 | } | ||
| 1524 | } | ||
| 1525 | } | ||
| 1526 | }, | ||
| 1527 | "Dark Theme": { | ||
| 1528 | "localizations": { | ||
| 1529 | "de": { | ||
| 1530 | "stringUnit": { | ||
| 1531 | "state": "translated", | ||
| 1532 | "value": "Dunkles Thema" | ||
| 1533 | } | ||
| 1534 | } | ||
| 1535 | } | ||
| 1536 | }, | ||
| 1477 | "Date": { | 1537 | "Date": { |
| 1478 | "localizations": { | 1538 | "localizations": { |
| 1479 | "de": { | 1539 | "de": { |
| @@ -2660,6 +2720,26 @@ | |||
| 2660 | } | 2720 | } |
| 2661 | } | 2721 | } |
| 2662 | }, | 2722 | }, |
| 2723 | "Light": { | ||
| 2724 | "localizations": { | ||
| 2725 | "de": { | ||
| 2726 | "stringUnit": { | ||
| 2727 | "state": "translated", | ||
| 2728 | "value": "Hell" | ||
| 2729 | } | ||
| 2730 | } | ||
| 2731 | } | ||
| 2732 | }, | ||
| 2733 | "Light Theme": { | ||
| 2734 | "localizations": { | ||
| 2735 | "de": { | ||
| 2736 | "stringUnit": { | ||
| 2737 | "state": "translated", | ||
| 2738 | "value": "Helles Thema" | ||
| 2739 | } | ||
| 2740 | } | ||
| 2741 | } | ||
| 2742 | }, | ||
| 2663 | "Limit dates": { | 2743 | "Limit dates": { |
| 2664 | "localizations": { | 2744 | "localizations": { |
| 2665 | "de": { | 2745 | "de": { |
| @@ -4839,6 +4919,16 @@ | |||
| 4839 | } | 4919 | } |
| 4840 | } | 4920 | } |
| 4841 | }, | 4921 | }, |
| 4922 | "Starting point": { | ||
| 4923 | "localizations": { | ||
| 4924 | "de": { | ||
| 4925 | "stringUnit": { | ||
| 4926 | "state": "translated", | ||
| 4927 | "value": "Ausgangspunkt" | ||
| 4928 | } | ||
| 4929 | } | ||
| 4930 | } | ||
| 4931 | }, | ||
| 4842 | "Starts": { | 4932 | "Starts": { |
| 4843 | "localizations": { | 4933 | "localizations": { |
| 4844 | "de": { | 4934 | "de": { |
| @@ -5213,6 +5303,16 @@ | |||
| 5213 | } | 5303 | } |
| 5214 | } | 5304 | } |
| 5215 | }, | 5305 | }, |
| 5306 | "The icon shows in the Dock while orgstar runs. Finder, and the Dock after orgstar quits, show the default icon.": { | ||
| 5307 | "localizations": { | ||
| 5308 | "de": { | ||
| 5309 | "stringUnit": { | ||
| 5310 | "state": "translated", | ||
| 5311 | "value": "Das Symbol erscheint im Dock, solange orgstar läuft. Der Finder und das Dock nach dem Beenden zeigen das Standardsymbol." | ||
| 5312 | } | ||
| 5313 | } | ||
| 5314 | } | ||
| 5315 | }, | ||
| 5216 | "The next agenda entry, or how many are open today.": { | 5316 | "The next agenda entry, or how many are open today.": { |
| 5217 | "localizations": { | 5317 | "localizations": { |
| 5218 | "de": { | 5318 | "de": { |
| @@ -5670,6 +5770,16 @@ | |||
| 5670 | } | 5770 | } |
| 5671 | } | 5771 | } |
| 5672 | }, | 5772 | }, |
| 5773 | "my-theme.toml is already in the config folder; it was left as it is.": { | ||
| 5774 | "localizations": { | ||
| 5775 | "de": { | ||
| 5776 | "stringUnit": { | ||
| 5777 | "state": "translated", | ||
| 5778 | "value": "my-theme.toml liegt bereits im Konfigurationsordner und wurde nicht verändert." | ||
| 5779 | } | ||
| 5780 | } | ||
| 5781 | } | ||
| 5782 | }, | ||
| 5673 | "open": { | 5783 | "open": { |
| 5674 | "localizations": { | 5784 | "localizations": { |
| 5675 | "de": { | 5785 | "de": { |