Skip to content

Commit

Permalink
[BUILD-860] Use new dark theme icons, update button colors (#1040)
Browse files Browse the repository at this point in the history
Use new dark theme icons, update button colors
  • Loading branch information
RisingOrange authored Nov 26, 2024
1 parent 22fa3d4 commit 6420bc2
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 44 deletions.
19 changes: 19 additions & 0 deletions ankihub/gui/web/media/_b&b_icon_dark_theme.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 32 additions & 39 deletions ankihub/gui/web/media/_fa4_icon_dark_theme.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 19 additions & 5 deletions ankihub/gui/web/reviewer_buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,31 @@ class AnkiHubReviewerButtons {

this.colorButtonLight = "#F9FAFB";
this.colorButtonSelectedLight = "#C7D2FE";
this.colorButtonBorderLight = "#A5B4FC";
this.colorButtonBorderLight = "#D1D5DB";

this.colorButtonDark = "#030712";
this.colorButtonSelectedDark = "#3730A3";
this.colorButtonBorderDark = "#4338CA";
this.colorButtonBorderDark = "#4b5563";

this.buttonsData = [
{ name: "b&b", iconPath: "/_b&b_icon.svg", active: false, tooltip: null },
{ name: "fa4", iconPath: "/_fa4_icon.svg", iconPathDarkTheme: "/_fa4_icon_dark_theme.svg", active: false, tooltip: null },
{
name: "chatbot", iconPath: "/_chatbot_icon.svg", active: false,
name: "b&b",
iconPath: "/_b&b_icon.svg",
iconPathDarkTheme: "/_b&b_icon_dark_theme.svg",
active: false,
tooltip: null,
},
{
name: "fa4",
iconPath: "/_fa4_icon.svg",
iconPathDarkTheme: "/_fa4_icon_dark_theme.svg",
active: false,
tooltip: null
},
{
name: "chatbot",
iconPath: "/_chatbot_icon.svg",
active: false,
tooltip: "Learn more about this flashcard topic<br>or explore related cards."
},
]
Expand Down

0 comments on commit 6420bc2

Please sign in to comment.