diff --git a/_locales/en/messages.json b/_locales/en/messages.json index e8826a3..b8239fe 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -311,6 +311,9 @@ "hide_sequence_footer": { "message": "Hide Next/Previous Buttons" }, + "hide_navbar": { + "message": "Hide Navigation Bar" + }, "global_search": { "message": "Global Canvas Search" }, diff --git a/css/darkmodecss.js b/css/darkmodecss.js index 60a7fab..fd6c07f 100644 --- a/css/darkmodecss.js +++ b/css/darkmodecss.js @@ -1,6 +1,7 @@ const DARKMODE_CSS = ` #announcementWrapper>div>div, #breadcrumbs, +.ic-app-nav-toggle-and-crumbs, #calendar-app .fc-agendaWeek-view .fc-body, #calendar-app .fc-event, #calendar-app .fc-month-view .fc-body, @@ -1286,6 +1287,24 @@ body > span > span[class*="-tray"] { .UpdateItemTray-styles__root { background: var(--bcbackground-0) !important; } +/* Immersive Reader button (in the nav-toggle + breadcrumbs bar): an InstUI + Button whose emotion class hashes change between Canvas releases, so + target the stable mount point and attribute-suffix class names instead. + The button and its inner content span carry a light surface, dark ink + text and a black icon glyph, which are unreadable on the dark theme. */ +#immersive_reader_mount_point button[class$="-baseButton"], +#immersive_reader_mount_point button[class$="-baseButton"] > span:first-child { + background: var(--bcbackground-1) !important; + color: var(--bctext-0) !important; + border: 1px solid var(--bcborders) !important; + box-shadow: none !important; +} +/* The icon glyph is hardcoded black (fill="#000000" attribute); recolor it + to the theme text color. The blue accent paths stay as-is — they read + fine on dark. */ +#immersive_reader_mount_point button[class$="-baseButton"] svg path[fill="#000000"] { + fill: var(--bctext-0) !important; +} /* InstUI TextInput / Select facades (Title, Date, Time, Course fields): white surface, dark ink, gray border. Repaint with the theme surface, text, and border colors — the calendar / arrow icons inside use diff --git a/html/popup.html b/html/popup.html index 41cb077..05293cd 100644 --- a/html/popup.html +++ b/html/popup.html @@ -354,6 +354,10 @@ Remove sidebar logo +