GithubHelp home page GithubHelp logo

dracula / wolfram-notebooks Goto Github PK

View Code? Open in Web Editor NEW
33.0 3.0 6.0 321 KB

๐Ÿง›๐Ÿปโ€โ™‚๏ธ Dark theme for Wolfram Notebooks

Home Page: https://draculatheme.com/wolfram-notebooks

License: MIT License

Mathematica 100.00%
mathematica wolfram-notebooks wolfram-language stylesheets user-interface dracula-theme

wolfram-notebooks's Introduction

wolfram-notebooks's People

Contributors

imgbotapp avatar jldohmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wolfram-notebooks's Issues

Add button toggle for light/dark mode

I want to add a docked cell in the stylesheet definition that will toggle between "Dracula.nb" and "Default.nb" as the style definitions for a notebook.

Default.nb doesn't contain a definition for a toggle, so as soon as you toggle in a notebook with a Dracula theme, it will disappear. So, how I see it working, is that a separate stylesheet that inherits from Default.nb will be used...What I'm not sure about is if

  1. users will need to have a new "Default-2.nb" stylesheet installed or if

  2. the Notebook expression that contains the new stylesheet can be iconized and stored somewhere hidden like within the docked cell

The docked cell will need to be added to the notebook style definition, if at all

Other things to consider:

  • a docked cell with just a toggle button is weird at best, annoying at worst. It will need to contain some other things
  • is this something that would even be useful for other people ๐Ÿคฃ

Basic prototype:

ex1 = Button[ "Toggle Light/Dark Mode",
  Module[{nb, dark, light, current},
      nb = EvaluationNotebook[];
      dark = "Dracula.nb";
      light = "Default.nb";
      current = StyleDefinitions -> "Dracula.nb";
   
   If[
       First@Options[nb, StyleDefinitions] === current,
       SetOptions[nb, StyleDefinitions -> light],
       SetOptions[nb, StyleDefinitions -> dark]
    ]
   ]];

CreateWindow[DockedCells -> Cell[BoxData[ToBoxes[ex1]], "DockedCell"]]

If anyone has any thoughts, please comment below.

Colors of some titles are too dark

I have an issue with the colors of the titles. See for instance the photo here - the color of some of the titles is too dark. Is it something specific to my setup? Or something has changed in Mathematica 12.2?

Screen Shot 2021-12-16 at 9 39 02

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.