Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/src/processing/app/Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,13 @@ static private void createAndShowGUI(String[] args) {
// theme.txt file in the user's sketchbook folder is picked up.
Theme.init();

// Set the look and feel before any window is constructed, so that the
// correct theme look and feel preferences are applied to the UI
FlatLaf laf = "dark".equals(Theme.get("laf.mode")) ?
new FlatDarkLaf() : new FlatLightLaf();
laf.setExtraDefaults(Collections.singletonMap("@accentColor", Theme.get("laf.accent.color")));
FlatLaf.setup(laf);

// Create a location for untitled sketches
setupUntitleSketches();

Expand Down
2 changes: 1 addition & 1 deletion build/shared/lib/theme/Alloys/agpalilik.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Look-and-Feel Entries ##

laf.mode = light
laf.mode = dark
laf.accent.color = #8AB2FF

# global color used in dialog boxes that have text links
Expand Down
2 changes: 1 addition & 1 deletion build/shared/lib/theme/Alloys/bondoc.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Look-and-Feel Entries ##

laf.mode = light
laf.mode = dark
laf.accent.color = #BFA2FF

# global color used in dialog boxes that have text links
Expand Down
2 changes: 1 addition & 1 deletion build/shared/lib/theme/Alloys/brahin.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Look-and-Feel Entries ##

laf.mode = light
laf.mode = dark
laf.accent.color = #86A100

# global color used in dialog boxes that have text links
Expand Down
2 changes: 1 addition & 1 deletion build/shared/lib/theme/Alloys/gancedo.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Look-and-Feel Entries ##

laf.mode = light
laf.mode = dark
laf.accent.color = #E46000

# global color used in dialog boxes that have text links
Expand Down
2 changes: 1 addition & 1 deletion build/shared/lib/theme/Alloys/morito.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Look-and-Feel Entries ##

laf.mode = light
laf.mode = dark
laf.accent.color = #EA9EFF

# global color used in dialog boxes that have text links
Expand Down
2 changes: 1 addition & 1 deletion build/shared/lib/theme/Alloys/omolon.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Look-and-Feel Entries ##

laf.mode = light
laf.mode = dark
laf.accent.color = #999EA6

# global color used in dialog boxes that have text links
Expand Down
2 changes: 1 addition & 1 deletion build/shared/lib/theme/Alloys/tagish.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Look-and-Feel Entries ##

laf.mode = light
laf.mode = dark
laf.accent.color = #ABABAB

# global color used in dialog boxes that have text links
Expand Down
2 changes: 1 addition & 1 deletion build/shared/lib/theme/Minerals/antimony.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Look-and-Feel Entries ##

laf.mode = light
laf.mode = dark
laf.accent.color = #72777A

# global color used in dialog boxes that have text links
Expand Down
2 changes: 1 addition & 1 deletion build/shared/lib/theme/Minerals/bauxite.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Look-and-Feel Entries ##

laf.mode = light
laf.mode = dark
laf.accent.color = #F8954A

# global color used in dialog boxes that have text links
Expand Down
2 changes: 1 addition & 1 deletion build/shared/lib/theme/Minerals/fluorite.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Look-and-Feel Entries ##

laf.mode = light
laf.mode = dark
laf.accent.color = #A49EA9

# global color used in dialog boxes that have text links
Expand Down
2 changes: 1 addition & 1 deletion build/shared/lib/theme/Minerals/garnet.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Look-and-Feel Entries ##

laf.mode = light
laf.mode = dark
laf.accent.color = #FF94A3

# global color used in dialog boxes that have text links
Expand Down
2 changes: 1 addition & 1 deletion build/shared/lib/theme/Minerals/malachite.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Look-and-Feel Entries ##

laf.mode = light
laf.mode = dark
laf.accent.color = #17AD71

# global color used in dialog boxes that have text links
Expand Down
2 changes: 1 addition & 1 deletion build/shared/lib/theme/Minerals/pyrite.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Look-and-Feel Entries ##

laf.mode = light
laf.mode = dark
laf.accent.color = #999166

# global color used in dialog boxes that have text links
Expand Down