Comments (10)
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.
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.
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.
@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 notthemes
?
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.
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.
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).
- Go to your Sketchbook folder (e.g.
~/Arduino
for Linux) - Create a folder
theme
if not already present - 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.
from darkarduinotheme.
@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.
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.
Thank you @Mumfrey !
from darkarduinotheme.
Sorry all, I am no longer maintaining this repo. Please see the note in the README
file.
from darkarduinotheme.
Related Issues (20)
- Location for the Windows Store version? HOT 1
- 1.8.5 juz dark
- (minor) doesn't work right when preferences=>use external editor is selected... HOT 2
- No 2x size buttons for large monitors HOT 2
- Install location is incorrect for 1.8.8 on OSX HOT 1
- Canβt unzip dark theme file HOT 7
- File system can't be found in Ubuntu 19.04 HOT 7
- File tree not found in Ubuntu. Same issue as that of #28. HOT 4
- Is dark serial monitor possible?? HOT 2
- dark theme does not work Arduino 1.8.10 HOT 5
- Dark theme Issues on Arduino 1.8.10 HOT 2
- Installation instructions update for Mac HOT 7
- Integrate natively into the IDE HOT 2
- dark scrollbars, file menu bar HOT 1
- Suggestion: How to make use of Theme selector in Arduino IDE HOT 1
- Arduino IDE Dark
- How To do On Latest HOT 1
- font does not fit with cursor HOT 1
- Dark theme not working with Arduino 1.8.13? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darkarduinotheme.