File tree 1 file changed +24
-1
lines changed
app/src/processing/app/ui
1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 39
39
40
40
import javax .swing .*;
41
41
42
+ import processing .app .Base ;
42
43
import processing .app .Mode ;
43
44
import processing .app .Sketch ;
44
45
import processing .app .contrib .ContributionManager ;
@@ -83,10 +84,14 @@ public class EditorFooter extends Box {
83
84
Image gradient ;
84
85
Color bgColor ;
85
86
87
+ Box tabBar ;
88
+
86
89
JPanel cardPanel ;
87
90
CardLayout cardLayout ;
88
91
Controller controller ;
89
92
93
+ JLabel version ;
94
+
90
95
int updateCount ;
91
96
92
97
@@ -98,8 +103,17 @@ public EditorFooter(Editor eddie) {
98
103
cardPanel = new JPanel (cardLayout );
99
104
add (cardPanel );
100
105
106
+ tabBar = new Box (BoxLayout .X_AXIS );
107
+
101
108
controller = new Controller ();
102
- add (controller );
109
+ tabBar .add (controller );
110
+
111
+ version = new JLabel (Base .getVersionName ());
112
+ version .setBorder (BorderFactory .createEmptyBorder (0 , 0 , 0 , MARGIN ));
113
+
114
+ tabBar .add (version );
115
+
116
+ add (tabBar );
103
117
104
118
updateTheme ();
105
119
}
@@ -175,6 +189,15 @@ public void updateTheme() {
175
189
176
190
// replace colors for the "updates" indicator
177
191
controller .updateTheme ();
192
+
193
+ tabBar .setOpaque (true );
194
+ tabBar .setBackground (bgColor );
195
+
196
+ var updatesTextColor = Theme .getColor ("footer.updates.text.color" );
197
+ var withAlpha = new Color (updatesTextColor .getRed (), updatesTextColor .getGreen (), updatesTextColor .getBlue (), 128 );
198
+
199
+ version .setForeground (withAlpha );
200
+ version .setFont (font );
178
201
}
179
202
180
203
You can’t perform that action at this time.
0 commit comments