GithubHelp home page GithubHelp logo

petergeorgas / canvasdarkmode Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 13.0 1011 KB

Dark mode support for Canvas. Stay up late doing your homework, without the eyestrain.

Home Page: https://marissa.page/canvasdarkmode

License: GNU General Public License v3.0

CSS 93.01% HTML 5.64% JavaScript 1.35%

canvasdarkmode's Introduction

canvasdarkmode's People

Contributors

petergeorgas avatar

canvasdarkmode's Issues

Inbox is completely white

Describe the bug
The background of messages in the inbox are totally white until clicked on (active)

To Reproduce
Steps to reproduce the behavior:

  1. Go to Inbox

Expected behavior
Inbox looks better

Screenshots
image

Calendar looks bad

Describe the bug
The current date on the calendar highlight is completely white

To Reproduce
Steps to reproduce the behavior:

  1. Go to calendar

Expected behavior
Highlight needs to be less harsh

image

Let's make this theme togglable

I would like to add an option in the extension popup to allow users to switch between this "lighter" dark theme and the original dark theme by Marissa.

Potential way to get around inline scripts not being allowed in Chrome extensions

`/* EVENT LISTENERS
Needed to call the correct functions when the buttons are clicked by the user /
/
event listener for lights out: when light's out button clicked, call lightsOut function */
window.addEventListener('load', function load(event)
{
var createButton = document.getElementById('lightsOut');
createButton.addEventListener('click', function() { lightsOut() });
})

/* event listener for dark: when dark button clicked, call dark function */
window.addEventListener('load', function load(event)
{
var createButton = document.getElementById('dark');
createButton.addEventListener('click', function() { dark() });
})

/* set the background color of the popup window when the user clicks the toolbar icon */
chrome.browserAction.onClicked.addListener(function setTheme()
{
chrome.storage.sync.get(['themeToUse'], function(result)
{
console.log('Set browser action body background color!');
document.body.style.backgroundColor = result.themeToUse;
});
})`

I haven't tried this to confirm it works but something similar should work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.