Skip to content

Commit

Permalink
Dark theme polish; bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
aopell committed Aug 17, 2020
1 parent 063a6c8 commit d635c6f
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 3 deletions.
69 changes: 69 additions & 0 deletions css/modern.css
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,35 @@ header div.Je0RK button._1SIMq {
border: var(--border-size) solid var(--contrast-border) !important;
}

/* Navbar menus */
div.les2- {
background-color: var(--secondary) !important;
}

div.les2- ._3skcp {
border-color: var(--contrast-border) !important;
}

div.les2- ._1wP6w {
color: var(--text) !important;
}

div.les2- ._2wOCj {
color: var(--muted-text) !important;
}

.util-hover-background-color-cloud-grey-wHghL:hover {
background-color: var(--active) !important;
}

._33zXx {
background-color: var(--text) !important;
}

div.les2- h3 {
color: var(--text) !important;
}

/* Modal Red Color */
.close-button,
.restore-defaults {
Expand Down Expand Up @@ -787,6 +816,11 @@ body .action-links a:hover {
color: var(--text) !important;
}

span#updates-count {
color: var(--text) !important;
background-color: var(--active) !important;
}

/* User Page */
.info-tab th,
.info-tab td,
Expand All @@ -800,6 +834,16 @@ body .action-links a:hover {
color: var(--text) !important;
}

.private-profile {
background-color: var(--secondary) !important;
color: var(--text) !important;
border-color: var(--contrast-border) !important;
}

.private-profile h3 {
border-color: var(--contrast-border) !important;
}

/* School / Group Page */
#school-events {
padding: var(--padding) !important;
Expand Down Expand Up @@ -930,6 +974,31 @@ div.cellphone-container {
background-color: var(--accent) !important;
}

.ui-selectmenu {
border: none !important;
border-radius: var(--border-radius) !important;
background: none !important;
}

.ui-selectmenu-menu {
background: var(--secondary) !important;
border: var(--border-size) solid var(--contrast-border) !important;
border-radius: var(--border-radius) !important;
}

.ui-selectmenu-menu li a {
color: var(--text) !important;
}

.ui-selectmenu-menu li:hover a, .ui-selectmenu-menu .ui-selectmenu-item-focus a {
background-color: var(--active) !important;
}

.ui-selectmenu-menu .ui-selectmenu-item-selected a:after {
background-position: 0 calc(-242px - 20px * var(--theme-is-dark)) !important;
}


/* Error Page */
#error-page {
background-color: var(--secondary) !important;
Expand Down
2 changes: 1 addition & 1 deletion js/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ async function createQuickAccess() {
let linkWrap;

let wrapper = createElement("div", ["quick-access-wrapper"], {}, [
createElement("h3", ["h3-med"], {}, [
createElement("h3", ["h3-med"], { title: "Added by Schoology Plus" }, [
createSvgLogo("splus-logo-inline"),
// createElement("img", ["splus-logo-inline"], { src: chrome.runtime.getURL("imgs/plus-icon.png"), title: "Provided by Schoology Plus" }),
createElement("span", [], { textContent: "Quick Access" }),
Expand Down
2 changes: 1 addition & 1 deletion js/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ document.documentElement.setAttribute("page", location.pathname);
updateSettings();

var beta_tests = {
"darktheme": "https://schoologypl.us",
"darktheme": "https://schoologypl.us/docs/beta/darktheme",
"newgrades": "https://schoologypl.us"
};

Expand Down
10 changes: 10 additions & 0 deletions js/version-specific.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,16 @@ let migrationsTo = {
}
}, 10);
}
},
"6.4": function (currentVersion, previousVersion) {
saveBroadcasts([
createBroadcast(
640,
"Schoology Plus Dark Theme Beta",
"Schoology Plus is beta testing a new dark theme option! Join our Discord if you want to participate! <a href=\"https://discord.schoologypl.us\" id=\"announcement-darktheme-discord-link\" class=\"splus-track-clicks\">Click here</a> to join!",
new Date(2020, 7 /* August */, 16)
)
]);
}
};

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"id": "[email protected]"
}
},
"version": "6.3.1",
"version": "6.4",
"icons": {
"128": "imgs/[email protected]",
"64": "imgs/[email protected]",
Expand Down

0 comments on commit d635c6f

Please sign in to comment.