Code Monkey home page Code Monkey logo

Comments (10)

Mumfrey avatar Mumfrey commented on June 22, 2024 4

Hi @jeffThompson, I'm the one who added the custom theme functionality (in this pull request) largely because I love your dark theme and wanted to give theme authors like yourself an easier way to distribute their themes to end users. (In fact in my original pull request I mentioned your theme specifically).

To package the theme so that it works with the functionality all you need to do is:

  • Package the resources from the theme directory as a .zip archive.
  • As mentioned by @figgyc above, include in the archive a file called theme.properties with the 2 lines inside. (The zip will be ignored unless it contains this file)
  • Instruct users to create a theme folder in their sketchbook folder, and place the zip file inside.
  • Select the theme in their IDE and then restart

I tried this myself to confirm it's working with your theme, if you're still not having success with it then ping me back.

An alternative that works is that resources places directly in the theme folder (in your sketchbook) will be loaded directly. This makes it easy to develop themes because you don't need to replace files in the main program folder any more, you can just add files to themes and they will be loaded.

Note that the new functionality also includes the ability to specify a custom editor font in theme.txt which will override the default one unless the user has already changed to a different font manually).

Hope this helps.

from darkarduinotheme.

ricardojlrufino avatar ricardojlrufino commented on June 22, 2024 1

Usage

Add:

ui.laf = com.formdev.flatlaf.FlatDarkLaf

to theme.txt, from custom theme

Next, install custom theme. (#10202 ).

Example

Sample Dark theme in attachments.
darkduino.zip
Need add jar in /lib folder: https://bintray.com/jformdesigner/flatlaf/flatlaf/0.34#files/com/formdev/flatlaf/0.34

from darkarduinotheme.

jeffThompson avatar jeffThompson commented on June 22, 2024

Thanks @figgyc! I couldn't seem to get the theme to show up in my preferences though. The theme folder didn't exist in my sketchbook, so I tried creating it. I do see the option in the preferences window though, but the theme isn't there.

Any thoughts?

from darkarduinotheme.

jeffThompson avatar jeffThompson commented on June 22, 2024

@Mumfrey – so great, thank you for all this! Really glad this is baked into the IDE and will be easier for others to edit. I had considered trying to do something like this for a long time, but modding the IDE felt really daunting. I'm very much open to the dark theme being shipped with the Arduino IDE as a second option, if that would be of interest.

Unfortunately, I cannot get the theme to show up for me! I'm on Mac 10.14 (I saw from your PR that you hadn't tested on Mac) and the newest IDE version.

  • Does the .zip archive need to have any particular name?
  • Can you verify the folder I should create in my sketchbook is called theme and not themes?

Those are the only two things I can think of, but perhaps you'll have another guess as to what's breaking here? Thanks!

from darkarduinotheme.

Mumfrey avatar Mumfrey commented on June 22, 2024

I'm very much open to the dark theme being shipped with the Arduino IDE as a second option, if that would be of interest.

You'd have to ask the arduino team about that (or create a PR) I just PR'd the functionality to the IDE because I thought it was worth doing.

Unfortunately, I cannot get the theme to show up for me! I'm on Mac 10.14 (I saw from your PR that you hadn't tested on Mac) and the newest IDE version.

The original PR which supported just putting the files into theme (and yes it's theme rather than themes) definitely worked on mac, I had a friend who owns a mac test it for me. However the second PR (for zip bundles) I don't know for sure works on mac. I can ask my friend to test it if that helps.

A pre-packed version of a dark arduino skin (based on yours) is available here (lmihalkovic/darkduino
)
. Might be worth giving that a try and seeing if it works for you?

from darkarduinotheme.

suuuehgi avatar suuuehgi commented on June 22, 2024

Another year has passed. Please update the instructions. Fiddling around with system files as recommended here is a really bad practice. Google lists this repository first for arduino dark and countless blog posts copy the instructions (e.g. here).

  1. Go to your Sketchbook folder (e.g. ~/Arduino for Linux)
  2. Create a folder theme if not already present
  3. Throw the attached zip in.

It's as easy as that. Now start the IDE and choose the theme under preferences.
The zip is just what @figgyc wrote.

dark.zip

from darkarduinotheme.

jeffThompson avatar jeffThompson commented on June 22, 2024

@suuuehgi – I know! Keeping projects like this up to date is hard, and I'm not using Arduino a lot these days so I'm not often reminded. But the idea with Github is that others can help too! Posting issues is great, but feel free to fork the repo, change the README, and submit a pull request.

That said, hoping to get to the open issues here this week.

from darkarduinotheme.

ricardojlrufino avatar ricardojlrufino commented on June 22, 2024

Current installation is not user friendly. I'm improving installation in this pull request:
arduino/Arduino#10202
Now to enable a true Dark Mode, is need a mod on IDE , i done in this:
arduino/Arduino#10203

I made the build with these and other improvements and made available the link below, who can test it would be cool.
https://github.com/ricardojlrufino/Arduino/releases

from darkarduinotheme.

0purple avatar 0purple commented on June 22, 2024

Thank you @Mumfrey !

from darkarduinotheme.

jeffThompson avatar jeffThompson commented on June 22, 2024

Sorry all, I am no longer maintaining this repo. Please see the note in the README file.

from darkarduinotheme.

Related Issues (20)

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.