Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(client): show icon toggles that are on as pressed
Elian Dorand0ce7ed72c2d
diff --git a/apps/client/src/stylesheets/buttons.css b/apps/client/src/stylesheets/buttons.cssindex 00b69416ec..146e16f8be 100644--- a/apps/client/src/stylesheets/buttons.css+++ b/apps/client/src/stylesheets/buttons.css@@ -24,6 +24,16 @@color: var(--dropdown-item-icon-destructive-color);}+/* A toggle that is on, held through a hover. The Next theme colors icon buttons through these+ variables, so the button sets them as well as its own colors. */+.icon-action.active {+ --icon-button-color: var(--active-item-text-color);+ --icon-button-hover-color: var(--active-item-text-color);+ --icon-button-hover-background: var(--active-item-background-color);+ color: var(--active-item-text-color);+ background: var(--active-item-background-color);+}+.icon-action.disabled {color: var(--muted-text-color) !important;cursor: not-allowed;diff --git a/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.css b/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.cssindex 4012a84017..8f1608f910 100644--- a/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.css+++ b/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.css@@ -262,6 +262,8 @@.llm-chat-input-form .llm-chat-capability.icon-action.active {--icon-button-color: var(--link-color);--icon-button-hover-color: var(--link-color);+ --icon-button-hover-background: inherit;+ background: none;}/*diff --git a/apps/client/src/widgets/type_widgets/options/shortcuts.css b/apps/client/src/widgets/type_widgets/options/shortcuts.cssindex 59eef20ae6..edd071ff17 100644--- a/apps/client/src/widgets/type_widgets/options/shortcuts.css+++ b/apps/client/src/widgets/type_widgets/options/shortcuts.css@@ -35,7 +35,11 @@/* Highlight the filter button while a filter is applied. */.icon-action.active {+ --icon-button-color: var(--link-color);+ --icon-button-hover-color: inherit;+ --icon-button-hover-background: inherit;color: var(--link-color);+ background: none;}}