Skip to content

Commit

Permalink
Extended darkmode
Browse files Browse the repository at this point in the history
  • Loading branch information
fjwillemsen committed Nov 14, 2022
1 parent 539abbd commit d5018e3
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Scripts/appversion.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const appversion = "1.7.5";
const appversion = "1.7.6";
128 changes: 128 additions & 0 deletions Scripts/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
// inserting CSS
function addCSS() {
const css_text = `
body {
background-color: #fff;
color: black;
}
.loading-screen {
background-color: #fff;
}
.native-overleaf-settings {
display: inline-block;
width: 260px;
Expand Down Expand Up @@ -77,8 +86,62 @@ function addCSS() {
opacity: 0.7;
backdrop-filter: blur(25px);
}
#review-panel {
background-color: #dadfed;
color: #6b7797;
border-left: 0 solid #d9d9d9;
}
.review-panel-toolbar {
background-color: #fafafa;
}
.rp-entry {
background-color: #fff;
color: #6b7797;
}
.rp-comment-input {
background-color: #fff;
}
.rp-nav {
background-color: #fafafa;
}
.file-view {
background-color: #f0f0f0;
}
.history-entry-details {
background-color: #fff;
color: #5d6879;
}
.history-entry-change-doc {
color: #3f3f3f;
}
.history-labels-list, .history-labels-list-compare {
background-color: #fff;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #282a35;
color: white;
}
.loading-screen {
background-color: #282a35;
}
.loading-panel {
background-color: #282a35;
color: white;
}
dialog {
background: #282A35;
color: white;
Expand All @@ -98,6 +161,71 @@ function addCSS() {
.conditional-invert-colors {
filter: invert(100%) hue-rotate(180deg);
}
#review-panel {
background-color: #485263 !important;
color: white !important;
border-left: 0 solid black !important;
}
.review-panel-toolbar {
background-color: #282a35 !important;
}
.rp-entry {
background-color: #d1cfbc !important;
color: darkslategray !important;
}
.rp-comment-input {
background-color: floralwhite !important;
}
.rp-nav {
background-color: floralwhite !important;
}
.file-view {
background-color: #282a35 !important;
}
.history-entry-details {
background-color: #485263 !important;
color: floralwhite !important;
}
.history-entry-change-doc {
color: floralwhite !important;
}
.history-labels-list, .history-labels-list-compare {
background-color: #485263 !important;
}
.project-list-main {
background-color: #485263;
}
.project-list-card {
background-color: #282a35;
color: white;
}
.project-list-table-name-link {
color: lightskyblue;
}
.project-list-table-row:hover {
background-color: darkslategray;
}
.current-plan a.current-plan-label {
color: floralwhite;
}
footer.site-footer {
background-color: black;
}
}
`;
let styleSheet = document.createElement("style");
Expand Down
2 changes: 1 addition & 1 deletion bundled_script.js

Large diffs are not rendered by default.

0 comments on commit d5018e3

Please sign in to comment.