Skip to content

Commit

Permalink
📝 Add theme repository hint to menu-themes tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Schneegans committed Nov 9, 2024
1 parent 7685248 commit 807c676
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
"system-mode-subheading": "If enabled, you can choose a different theme and color set if your system is in light or dark color mode.",
"system-mode-subheading-dark": "Your system is currently in dark mode. The settings above will only be used in dark mode.",
"system-mode-subheading-light": "Your system is currently in light mode. The settings above will only be used in light mode.",
"caption": "In the future, we will have an online repository for menu themes. For now, you can <a {{tutorialLink}}>learn how to create your own themes</a> and share them in <a {{discordLink}}>Kando's Discord Server</a>!",
"hint": "You can download themes from the <a {{repositoryLink}}>theme repository</a>. You can also <a {{tutorialLink}}>learn how to create your own themes</a> and share them in <a {{discordLink}}>Kando's Discord Server</a>!",
"edit-colors": "Edit Colors",
"dark-mode": "Use Separate Themes and Colors for Light and Dark Mode",
"close-color-picker": "Close the color editor",
Expand Down
7 changes: 4 additions & 3 deletions src/renderer/editor/toolbar/menu-themes-tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@ export class MenuThemesTab {
themes: themeData,
darkMode: this.enableDarkMode,
strings: {
caption: i18next.t('toolbar.menu-themes-tab.caption', {
hint: i18next.t('toolbar.menu-themes-tab.hint', {
repositoryLink: 'target=_blank href=https://github.com/kando-menu/menu-themes',
tutorialLink:
'target="_blank" href="https://github.com/kando-menu/kando/blob/main/docs/menu-themes.md"',
discordLink: 'target="_blank" href="https://discord.gg/hZwbVSDkhy"',
'target=_blank href=https://github.com/kando-menu/kando/blob/main/docs/menu-themes.md',
discordLink: 'target=_blank href=https://discord.gg/hZwbVSDkhy',
}),
editColors: i18next.t('toolbar.menu-themes-tab.edit-colors'),
darkMode: i18next.t('toolbar.menu-themes-tab.dark-mode'),
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/editor/toolbar/templates/menu-themes-tab.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<div class='d-flex h-100 flex-column'>

<div class="m-3 mb-2 fs-5 align-self-center">{{{strings/caption}}}</div>
<div class="m-3 mb-2 fs-5 align-self-center">{{{strings/hint}}}</div>

<div class='flex-grow-1 align-content-start scrollbox mx-2'>
<div class="scrollbox-content toolbar-button-grid">
Expand Down

0 comments on commit 807c676

Please sign in to comment.