author | wenzelm |
Tue, 20 May 2025 16:52:27 +0200 | |
changeset 82636 | 692feb5e45e6 |
parent 82635 | 8be3035c82d4 |
permissions | -rw-r--r-- |
82569 | 1 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/GUIUtilities.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/GUIUtilities.java |
2 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/GUIUtilities.java 2024-08-03 19:53:15.000000000 +0200 |
|
82635
8be3035c82d4
more scalable icons -- requires to update jedit component;
wenzelm
parents:
82634
diff
changeset
|
3 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/GUIUtilities.java 2025-05-20 15:40:14.181962645 +0200 |
82569 | 4 |
@@ -42,6 +42,8 @@ |
5 |
import java.net.URL; |
|
6 |
import java.util.*; |
|
7 |
import java.util.List; |
|
8 |
+import java.util.regex.Pattern; |
|
9 |
+import java.util.regex.Matcher; |
|
10 |
import java.lang.ref.SoftReference; |
|
11 |
||
12 |
import javax.annotation.Nonnull; |
|
13 |
@@ -72,6 +74,8 @@ |
|
14 |
import java.util.concurrent.ScheduledExecutorService; |
|
15 |
import java.util.concurrent.TimeUnit; |
|
16 |
import java.util.concurrent.atomic.AtomicLong; |
|
17 |
+ |
|
18 |
+import com.formdev.flatlaf.extras.FlatSVGIcon; |
|
19 |
//}}} |
|
20 |
||
21 |
/** Various GUI utility functions related to icons, menus, toolbars, keyboard shortcuts, etc. |
|
22 |
@@ -115,14 +119,14 @@ |
|
23 |
* @return the icon |
|
24 |
* @since jEdit 2.6pre7 |
|
25 |
*/ |
|
26 |
- public static Icon loadIcon(String iconName) |
|
27 |
+ public static Icon loadIcon(String iconSpec) |
|
28 |
{ |
|
29 |
- if(iconName == null) |
|
30 |
+ if(iconSpec == null) |
|
31 |
return null; |
|
32 |
||
33 |
// * Enable old icon naming scheme support |
|
34 |
- if(deprecatedIcons.containsKey(iconName)) |
|
35 |
- iconName = deprecatedIcons.get(iconName); |
|
36 |
+ if(deprecatedIcons.containsKey(iconSpec)) |
|
37 |
+ iconSpec = deprecatedIcons.get(iconSpec); |
|
38 |
||
39 |
// check if there is a cached version first |
|
40 |
Map<String, Icon> cache = null; |
|
41 |
@@ -135,12 +139,25 @@ |
|
42 |
cache = new HashMap<>(); |
|
43 |
iconCache = new SoftReference<>(cache); |
|
44 |
} |
|
45 |
- Icon icon = cache.get(iconName); |
|
46 |
+ Icon icon = cache.get(iconSpec); |
|
47 |
if(icon != null) |
|
48 |
return icon; |
|
49 |
||
50 |
URL url; |
|
51 |
||
52 |
+ float iconScale = 1.0f; |
|
53 |
+ String iconName = iconSpec; |
|
54 |
+ { |
|
55 |
+ Matcher matcher = Pattern.compile("^([^?]+)\\?scale=(.+)$").matcher(iconSpec); |
|
56 |
+ if (matcher.matches()) { |
|
57 |
+ try { |
|
58 |
+ iconScale = Float.valueOf(matcher.group(2)); |
|
59 |
+ iconName = matcher.group(1); |
|
60 |
+ } |
|
61 |
+ catch (NumberFormatException e) { } |
|
62 |
+ } |
|
63 |
+ } |
|
64 |
+ |
|
65 |
try |
|
66 |
{ |
|
67 |
// get the icon |
|
68 |
@@ -164,9 +181,11 @@ |
|
69 |
} |
|
70 |
} |
|
71 |
||
72 |
- icon = new ImageIcon(url); |
|
73 |
+ icon = |
|
74 |
+ url.toString().endsWith(".svg") ? |
|
75 |
+ new FlatSVGIcon(url).derive(iconScale) : new ImageIcon(url); |
|
76 |
||
77 |
- cache.put(iconName,icon); |
|
78 |
+ cache.put(iconSpec,icon); |
|
79 |
return icon; |
|
80 |
} //}}} |
|
81 |
||
82 |
@@ -1094,9 +1113,7 @@ |
|
83 |
return new Font("Monospaced", Font.PLAIN, 12); |
|
84 |
} |
|
85 |
else { |
|
86 |
- Font font2 = |
|
87 |
- new Font(OperatingSystem.isWindows() ? "Lucida Console" : "Monospaced", |
|
88 |
- Font.PLAIN, font1.getSize()); |
|
89 |
+ Font font2 = new Font("Isabelle DejaVu Sans Mono", Font.PLAIN, font1.getSize()); |
|
90 |
FontRenderContext frc = new FontRenderContext(null, true, false); |
|
91 |
float scale = |
|
92 |
font1.getLineMetrics("", frc).getHeight() / font2.getLineMetrics("", frc).getHeight(); |
|
82625
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
93 |
@@ -1107,6 +1124,48 @@ |
82569 | 94 |
|
95 |
//{{{ Colors and styles |
|
96 |
||
82570
b47b65bd707f
proper painting of menu accelerator in dark mode;
wenzelm
parents:
82569
diff
changeset
|
97 |
+ public static Color menuAcceleratorForeground(boolean selection) { |
b47b65bd707f
proper painting of menu accelerator in dark mode;
wenzelm
parents:
82569
diff
changeset
|
98 |
+ Color color = |
b47b65bd707f
proper painting of menu accelerator in dark mode;
wenzelm
parents:
82569
diff
changeset
|
99 |
+ UIManager.getColor(selection ? |
b47b65bd707f
proper painting of menu accelerator in dark mode;
wenzelm
parents:
82569
diff
changeset
|
100 |
+ "MenuItem.acceleratorSelectionForeground" : |
b47b65bd707f
proper painting of menu accelerator in dark mode;
wenzelm
parents:
82569
diff
changeset
|
101 |
+ "MenuItem.acceleratorForeground"); |
b47b65bd707f
proper painting of menu accelerator in dark mode;
wenzelm
parents:
82569
diff
changeset
|
102 |
+ |
82625
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
103 |
+ if (color == null) color = defaultFgColor(); |
82570
b47b65bd707f
proper painting of menu accelerator in dark mode;
wenzelm
parents:
82569
diff
changeset
|
104 |
+ |
b47b65bd707f
proper painting of menu accelerator in dark mode;
wenzelm
parents:
82569
diff
changeset
|
105 |
+ return color; |
b47b65bd707f
proper painting of menu accelerator in dark mode;
wenzelm
parents:
82569
diff
changeset
|
106 |
+ } |
b47b65bd707f
proper painting of menu accelerator in dark mode;
wenzelm
parents:
82569
diff
changeset
|
107 |
+ |
82569 | 108 |
+ public static boolean isDarkLaf() |
109 |
+ { |
|
110 |
+ return com.formdev.flatlaf.FlatLaf.isLafDark(); |
|
111 |
+ } |
|
112 |
+ |
|
82625
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
113 |
+ public static Color defaultBgColor() |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
114 |
+ { |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
115 |
+ return isDarkLaf() ? Color.BLACK : Color.WHITE; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
116 |
+ } |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
117 |
+ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
118 |
+ public static Color defaultFgColor() |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
119 |
+ { |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
120 |
+ return isDarkLaf() ? Color.WHITE : Color.BLACK; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
121 |
+ } |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
122 |
+ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
123 |
+ public static String getTheme() |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
124 |
+ { |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
125 |
+ return isDarkLaf() ? "dark" : ""; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
126 |
+ } |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
127 |
+ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
128 |
+ public static String getThemeSuffix() |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
129 |
+ { |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
130 |
+ return getThemeSuffix("."); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
131 |
+ } |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
132 |
+ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
133 |
+ public static String getThemeSuffix(String s) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
134 |
+ { |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
135 |
+ String t = getTheme(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
136 |
+ return t.isEmpty() ? t : s + t; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
137 |
+ } |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
138 |
+ |
82569 | 139 |
//{{{ getStyleString() method |
140 |
/** |
|
141 |
* Converts a style into it's string representation. |
|
82625
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
142 |
@@ -1407,8 +1466,8 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
143 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
144 |
for (Component child: win.getComponents()) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
145 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
146 |
- child.setBackground(jEdit.getColorProperty("view.bgColor", Color.WHITE)); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
147 |
- child.setForeground(jEdit.getColorProperty("view.fgColor", Color.BLACK)); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
148 |
+ child.setBackground(jEdit.getColorProperty("view.bgColor", defaultBgColor())); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
149 |
+ child.setForeground(jEdit.getColorProperty("view.fgColor")); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
150 |
if (child instanceof JTextPane) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
151 |
((JTextPane)child).setUI(new javax.swing.plaf.basic.BasicEditorPaneUI()); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
152 |
if (child instanceof Container) |
82635
8be3035c82d4
more scalable icons -- requires to update jedit component;
wenzelm
parents:
82634
diff
changeset
|
153 |
@@ -1596,7 +1655,7 @@ |
8be3035c82d4
more scalable icons -- requires to update jedit component;
wenzelm
parents:
82634
diff
changeset
|
154 |
deprecatedIcons.put("NextFile.png", "22x22/go-last.png"); |
8be3035c82d4
more scalable icons -- requires to update jedit component;
wenzelm
parents:
82634
diff
changeset
|
155 |
deprecatedIcons.put("PreviousFile.png","22x22/go-first.png"); |
8be3035c82d4
more scalable icons -- requires to update jedit component;
wenzelm
parents:
82634
diff
changeset
|
156 |
|
8be3035c82d4
more scalable icons -- requires to update jedit component;
wenzelm
parents:
82634
diff
changeset
|
157 |
- deprecatedIcons.put("closebox.gif", "10x10/actions/close.png"); |
8be3035c82d4
more scalable icons -- requires to update jedit component;
wenzelm
parents:
82634
diff
changeset
|
158 |
+ deprecatedIcons.put("closebox.gif", "32x32/actions/process-stop.svg?scale=0.33"); |
8be3035c82d4
more scalable icons -- requires to update jedit component;
wenzelm
parents:
82634
diff
changeset
|
159 |
deprecatedIcons.put("normal.gif", "10x10/status/document-unmodified.png"); |
8be3035c82d4
more scalable icons -- requires to update jedit component;
wenzelm
parents:
82634
diff
changeset
|
160 |
deprecatedIcons.put("readonly.gif", "10x10/emblem/emblem-readonly.png"); |
8be3035c82d4
more scalable icons -- requires to update jedit component;
wenzelm
parents:
82634
diff
changeset
|
161 |
deprecatedIcons.put("dirty.gif", "10x10/status/document-modified.png"); |
82625
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
162 |
@@ -1619,6 +1678,21 @@ |
82569 | 163 |
} |
164 |
//}}} |
|
165 |
||
166 |
+ //{{{ isPopupTrigger() method |
|
167 |
+ /** |
|
168 |
+ * Returns if the specified event is the popup trigger event. |
|
169 |
+ * This implements precisely defined behavior, as opposed to |
|
170 |
+ * MouseEvent.isPopupTrigger(). |
|
171 |
+ * @param evt The event |
|
172 |
+ * @since jEdit 3.2pre8 |
|
173 |
+ * @deprecated use {@link GenericGUIUtilities#requestFocus(Window, Component)} |
|
174 |
+ */ |
|
175 |
+ @Deprecated |
|
176 |
+ public static boolean isPopupTrigger(MouseEvent evt) |
|
177 |
+ { |
|
178 |
+ return GenericGUIUtilities.isPopupTrigger(evt); |
|
179 |
+ } //}}} |
|
180 |
+ |
|
181 |
//{{{ init() method |
|
182 |
static void init() |
|
183 |
{ |
|
82624 | 184 |
diff -ru jedit5.7.0/jEdit/build.xml jedit5.7.0-patched/jEdit/build.xml |
185 |
--- jedit5.7.0/jEdit/build.xml 2024-08-03 19:53:28.000000000 +0200 |
|
186 |
+++ jedit5.7.0-patched/jEdit/build.xml 2025-04-16 17:20:57.401732024 +0200 |
|
187 |
@@ -488,6 +488,7 @@ |
|
188 |
<include name="org/gjt/sp/jedit/icons/**/*.gif"/> |
|
189 |
<include name="org/gjt/sp/jedit/icons/**/*.jpg"/> |
|
190 |
<include name="org/gjt/sp/jedit/icons/**/*.png"/> |
|
191 |
+ <include name="org/gjt/sp/jedit/icons/**/*.svg"/> |
|
192 |
<include name="org/jedit/localization/*.props"/> |
|
193 |
</fileset> |
|
194 |
</jar> |
|
195 |
@@ -783,6 +784,7 @@ |
|
196 |
<include name="*.txt"/> |
|
197 |
<include name="*.html"/> |
|
198 |
<include name="*.png"/> |
|
199 |
+ <include name="*.svg"/> |
|
200 |
<include name="tips/**"/> |
|
201 |
</fileset> |
|
202 |
</copy> |
|
203 |
diff -ru jedit5.7.0/jEdit/ivy.xml jedit5.7.0-patched/jEdit/ivy.xml |
|
204 |
--- jedit5.7.0/jEdit/ivy.xml 2024-08-03 19:53:28.000000000 +0200 |
|
205 |
+++ jedit5.7.0-patched/jEdit/ivy.xml 2025-04-16 12:22:57.782535840 +0200 |
|
206 |
@@ -94,5 +94,8 @@ |
|
207 |
<dependency org="com.google.code.findbugs" name="jsr305" rev="3.0.2"/> |
|
208 |
||
209 |
<dependency org="com.evolvedbinary.appbundler" name="appbundler" rev="1.3.0" conf="appbundler"/> |
|
210 |
+ |
|
211 |
+ <dependency org="com.formdev" name="flatlaf" rev="3.6"/> |
|
212 |
+ <dependency org="com.formdev" name="flatlaf-extras" rev="3.6"/> |
|
213 |
</dependencies> |
|
214 |
</ivy-module> |
|
215 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/MarkerViewer.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/MarkerViewer.java |
|
216 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/MarkerViewer.java 2024-08-03 19:53:18.000000000 +0200 |
|
217 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/MarkerViewer.java 2025-04-16 21:35:23.519418287 +0200 |
|
218 |
@@ -50,28 +50,28 @@ |
|
219 |
toolBar.add(Box.createGlue()); |
|
220 |
||
221 |
RolloverButton addMarker = new RolloverButton( |
|
222 |
- GUIUtilities.loadIcon("Plus.png")); |
|
223 |
+ GUIUtilities.loadIcon(jEdit.getProperty("add-marker.icon.small"))); |
|
224 |
addMarker.setToolTipText(GenericGUIUtilities.prettifyMenuLabel( |
|
225 |
jEdit.getProperty("add-marker.label"))); |
|
226 |
addMarker.addActionListener(this); |
|
227 |
addMarker.setActionCommand("add-marker"); |
|
228 |
toolBar.add(addMarker); |
|
229 |
||
230 |
- previous = new RolloverButton(GUIUtilities.loadIcon("ArrowL.png")); |
|
231 |
+ previous = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("prev-marker.icon.small"))); |
|
232 |
previous.setToolTipText(GenericGUIUtilities.prettifyMenuLabel( |
|
233 |
jEdit.getProperty("prev-marker.label"))); |
|
234 |
previous.addActionListener(this); |
|
235 |
previous.setActionCommand("prev-marker"); |
|
236 |
toolBar.add(previous); |
|
237 |
||
238 |
- next = new RolloverButton(GUIUtilities.loadIcon("ArrowR.png")); |
|
239 |
+ next = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("next-marker.icon.small"))); |
|
240 |
next.setToolTipText(GenericGUIUtilities.prettifyMenuLabel( |
|
241 |
jEdit.getProperty("next-marker.label"))); |
|
242 |
next.addActionListener(this); |
|
243 |
next.setActionCommand("next-marker"); |
|
244 |
toolBar.add(next); |
|
245 |
||
246 |
- clear = new RolloverButton(GUIUtilities.loadIcon("Clear.png")); |
|
247 |
+ clear = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("remove-all-markers.icon.small"))); |
|
248 |
clear.setToolTipText(GenericGUIUtilities.prettifyMenuLabel( |
|
249 |
jEdit.getProperty("remove-all-markers.label"))); |
|
250 |
clear.addActionListener(this); |
|
251 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/jedit_gui.props jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/jedit_gui.props |
|
252 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/jedit_gui.props 2024-08-03 19:53:20.000000000 +0200 |
|
82634
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
253 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/jedit_gui.props 2025-05-20 13:46:50.541586193 +0200 |
82624 | 254 |
@@ -8,13 +8,15 @@ |
255 |
### |
|
256 |
||
257 |
#{{{ Common icons |
|
258 |
-common.add.icon=22x22/actions/list-add.png |
|
259 |
-common.remove.icon=22x22/actions/list-remove.png |
|
260 |
-common.moveUp.icon=22x22/actions/go-up.png |
|
261 |
-common.moveDown.icon=22x22/actions/go-down.png |
|
262 |
-common.clearAll.icon=22x22/actions/edit-clear.png |
|
263 |
+common.add.icon=32x32/actions/list-add.svg?scale=0.7 |
|
264 |
+common.remove.icon=32x32/actions/list-remove.svg?scale=0.7 |
|
265 |
+common.moveUp.icon=32x32/actions/go-up.svg?scale=0.7 |
|
266 |
+common.moveDown.icon=32x32/actions/go-down.svg?scale=0.7 |
|
267 |
+common.clearAll.icon=32x32/actions/edit-clear.svg?scale=0.7 |
|
268 |
logo.icon.small=16x16/apps/jedit.png |
|
269 |
logo.icon.medium=32x32/apps/jedit.png |
|
270 |
+navigate-backwards.icon=idea-icons/expui/general/chevronLeft.svg?scale=1.2 |
|
271 |
+navigate-forwards.icon=idea-icons/expui/general/chevronRight.svg?scale=1.2 |
|
272 |
||
273 |
#}}} |
|
274 |
||
82634
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
275 |
@@ -28,8 +30,8 @@ |
82624 | 276 |
defer=false |
277 |
startup=true |
|
278 |
||
279 |
-broken-image.icon=22x22/status/image-missing.png |
|
82634
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
280 |
-dropdown-arrow.icon=ToolbarMenu.gif |
82624 | 281 |
+broken-image.icon=32x32/status/image-missing.svg?scale=0.7 |
82634
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
282 |
+dropdown-arrow.icon=idea-icons/general/buttonDropTriangle.svg |
82624 | 283 |
#}}} |
284 |
||
82634
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
285 |
#{{{ Tool bar |
82624 | 286 |
@@ -39,68 +41,69 @@ |
287 |
buffer-options combined-options - \ |
|
288 |
plugin-manager - help |
|
289 |
||
290 |
-new-file.icon=22x22/actions/document-new.png |
|
291 |
-open-file.icon=22x22/actions/document-open.png |
|
292 |
-save.icon=22x22/actions/document-save.png |
|
293 |
-close-buffer.icon=22x22/actions/document-close.png |
|
294 |
-global-close-buffer.icon=22x22/actions/document-close.png |
|
295 |
-print.icon=22x22/actions/document-print.png |
|
296 |
+new-file.icon=32x32/actions/document-new.svg?scale=0.7 |
|
297 |
+open-file.icon=32x32/actions/document-open.svg?scale=0.7 |
|
298 |
+save.icon=32x32/actions/document-save.svg?scale=0.7 |
|
299 |
+close-buffer.icon=32x32/actions/process-stop.svg?scale=0.7 |
|
300 |
+global-close-buffer.icon=32x32/actions/process-stop.svg?scale=0.7 |
|
301 |
+print.icon=32x32/actions/document-print.svg?scale=0.7 |
|
302 |
page-setup.icon=22x22/actions/printer-setup.png |
|
303 |
-undo.icon=22x22/actions/edit-undo.png |
|
304 |
-redo.icon=22x22/actions/edit-redo.png |
|
305 |
-cut.icon=22x22/actions/edit-cut.png |
|
306 |
-copy.icon=22x22/actions/edit-copy.png |
|
307 |
-paste.icon=22x22/actions/edit-paste.png |
|
308 |
-find.icon=22x22/actions/edit-find.png |
|
309 |
-find-next.icon=22x22/actions/edit-find-next.png |
|
310 |
-new-view.icon=22x22/actions/window-new.png |
|
311 |
+undo.icon=32x32/actions/edit-undo.svg?scale=0.7 |
|
312 |
+redo.icon=32x32/actions/edit-redo.svg?scale=0.7 |
|
313 |
+cut.icon=32x32/actions/edit-cut.svg?scale=0.7 |
|
314 |
+copy.icon=32x32/actions/edit-copy.svg?scale=0.7 |
|
315 |
+paste.icon=32x32/actions/edit-paste.svg?scale=0.7 |
|
316 |
+find.icon=32x32/actions/edit-find.svg?scale=0.7 |
|
317 |
+find-prev.icon=32x32/actions/go-previous.svg?scale=0.7 |
|
318 |
+find-next.icon=32x32/actions/go-next.svg?scale=0.7 |
|
319 |
+new-view.icon=32x32/actions/window-new.svg?scale=0.7 |
|
320 |
unsplit.icon=22x22/actions/window-unsplit.png |
|
321 |
split-horizontal.icon=22x22/actions/window-split-horizontal.png |
|
322 |
split-vertical.icon=22x22/actions/window-split-vertical.png |
|
323 |
-buffer-options.icon=22x22/actions/document-properties.png |
|
324 |
-global-options.icon=22x22/categories/preferences-system.png |
|
325 |
-combined-options.icon=22x22/categories/preferences-system.png |
|
326 |
+buffer-options.icon=32x32/actions/document-properties.svg?scale=0.7 |
|
327 |
+global-options.icon=32x32/categories/preferences-system.svg?scale=0.7 |
|
328 |
+combined-options.icon=32x32/categories/preferences-system.svg?scale=0.7 |
|
329 |
plugin-manager.icon=22x22/places/plugins.png |
|
330 |
-help.icon=22x22/apps/help-browser.png |
|
331 |
+help.icon=22x22/apps/help-browser.svg |
|
332 |
||
333 |
#{{{ Icon list for tool bar editor |
|
334 |
icons=22x22/actions/resize-horisontal.png \ |
|
335 |
- 22x22/actions/go-down.png \ |
|
336 |
- 22x22/actions/go-previous.png \ |
|
337 |
- 22x22/actions/go-next.png \ |
|
338 |
- 22x22/actions/go-home.png \ |
|
339 |
- 22x22/actions/go-up.png \ |
|
340 |
- 22x22/actions/go-first.png \ |
|
341 |
- 22x22/actions/go-last.png \ |
|
342 |
- 22x22/actions/go-parent.png \ |
|
343 |
- 22x22/actions/document-close.png \ |
|
344 |
- 22x22/actions/edit-undo.png \ |
|
345 |
- 22x22/actions/edit-redo.png \ |
|
346 |
- 22x22/actions/edit-cut.png \ |
|
347 |
- 22x22/actions/edit-paste.png \ |
|
348 |
- 22x22/actions/edit-delete.png \ |
|
349 |
- 22x22/actions/edit-clear.png \ |
|
350 |
- 22x22/actions/edit-find-next.png \ |
|
351 |
- 22x22/actions/edit-find-in-folder.png \ |
|
352 |
- 22x22/actions/edit-find.png \ |
|
353 |
- 22x22/actions/edit-copy.png \ |
|
354 |
+ 22x22/actions/go-down.svg \ |
|
355 |
+ 22x22/actions/go-previous.svg \ |
|
356 |
+ 22x22/actions/go-next.svg \ |
|
357 |
+ 32x32/actions/go-home.svg?scale=0.7 \ |
|
358 |
+ 22x22/actions/go-up.svg \ |
|
359 |
+ 22x22/actions/go-first.svg \ |
|
360 |
+ 22x22/actions/go-last.svg \ |
|
361 |
+ 22x22/actions/go-up.svg \ |
|
362 |
+ 32x32/actions/process-stop.svg?scale=0.7 \ |
|
363 |
+ 32x32/actions/edit-undo.svg?scale=0.7 \ |
|
364 |
+ 32x32/actions/edit-redo.svg?scale=0.7 \ |
|
365 |
+ 32x32/actions/edit-cut.svg?scale=0.7 \ |
|
366 |
+ 32x32/actions/edit-paste.svg?scale=0.7 \ |
|
367 |
+ scalable/actions/edit-delete.svg \ |
|
368 |
+ 22x22/actions/edit-clear.svg \ |
|
369 |
+ 22x22/actions/go-next.svg \ |
|
370 |
+ 32x32/actions/system-search.svg?scale=0.7 \ |
|
371 |
+ 32x32/actions/edit-find.svg?scale=0.7 \ |
|
372 |
+ 32x32/actions/edit-copy.svg?scale=0.7 \ |
|
373 |
22x22/actions/copy-to-buffer.png \ |
|
374 |
- 22x22/actions/list-remove.png \ |
|
375 |
- 22x22/actions/list-add.png \ |
|
376 |
- 22x22/actions/folder-new.png \ |
|
377 |
- 22x22/actions/window-new.png \ |
|
378 |
- 22x22/actions/document-new.png \ |
|
379 |
- 22x22/actions/document-open.png \ |
|
380 |
+ 32x32/actions/list-remove.svg?scale=0.7 \ |
|
381 |
+ 32x32/actions/list-add.svg?scale=0.7 \ |
|
382 |
+ 32x32/actions/folder-new.svg?scale=0.7 \ |
|
383 |
+ 32x32/actions/document-new.svg?scale=0.7 \ |
|
384 |
+ 32x32/actions/document-new.svg?scale=0.7 \ |
|
385 |
+ 32x32/actions/document-open.svg?scale=0.7 \ |
|
386 |
22x22/actions/document-reload2.png \ |
|
387 |
- 22x22/actions/document-properties.png \ |
|
388 |
- 22x22/actions/document-save.png \ |
|
389 |
- 22x22/actions/document-save-all.png \ |
|
390 |
- 22x22/actions/document-save-as.png \ |
|
391 |
+ 32x32/actions/document-properties.svg?scale=0.7 \ |
|
392 |
+ 32x32/actions/document-save.svg?scale=0.7 \ |
|
393 |
+ 32x32/actions/document-save-all.svg?scale=0.5 \ |
|
394 |
+ 32x32/actions/document-save-as.svg?scale=0.7 \ |
|
395 |
22x22/actions/printer-setup.png \ |
|
396 |
- 22x22/actions/process-stop.png \ |
|
397 |
- 22x22/actions/media-playback-pause.png \ |
|
398 |
- 22x22/actions/media-playback-start.png \ |
|
399 |
- 22x22/actions/view-refresh.png \ |
|
400 |
+ 22x22/actions/system-log-out.svg \ |
|
401 |
+ 22x22/actions/media-playback-pause.svg \ |
|
402 |
+ 22x22/actions/media-playback-start.svg \ |
|
403 |
+ 22x22/actions/view-refresh.svg \ |
|
404 |
22x22/actions/application-run.png \ |
|
405 |
22x22/actions/edit-find-multiple.png \ |
|
406 |
22x22/actions/edit-find-single.png \ |
|
407 |
@@ -109,18 +112,18 @@ |
|
408 |
22x22/actions/window-unsplit.png \ |
|
409 |
22x22/actions/zoom-in.png \ |
|
410 |
22x22/actions/zoom-out.png \ |
|
411 |
- 22x22/apps/utilities-terminal.png \ |
|
412 |
- 22x22/apps/system-file-manager.png \ |
|
413 |
- 22x22/apps/internet-web-browser.png \ |
|
414 |
- 22x22/apps/help-browser.png \ |
|
415 |
- 22x22/apps/system-installer.png \ |
|
416 |
- 22x22/status/image-missing.png \ |
|
417 |
- 22x22/status/folder-visiting.png \ |
|
418 |
- 22x22/devices/drive-harddisk.png \ |
|
419 |
- 22x22/devices/media-floppy.png \ |
|
420 |
- 22x22/devices/printer.png \ |
|
421 |
+ 22x22/apps/utilities-terminal.svg \ |
|
422 |
+ 32x32/apps/system-file-manager.svg?scale=0.7 \ |
|
423 |
+ 32x32/apps/internet-web-browser.svg?scale=0.7 \ |
|
424 |
+ 22x22/apps/help-browser.svg \ |
|
425 |
+ 32x32/apps/system-installer.svg?scale=0.7 \ |
|
426 |
+ 32x32/status/image-missing.svg?scale=0.7 \ |
|
427 |
+ 32x32/status/folder-visiting.svg?scale=0.7 \ |
|
428 |
+ 32x32/devices/drive-harddisk.svg?scale=0.7 \ |
|
429 |
+ 22x22/devices/media-floppy.svg \ |
|
430 |
+ 32x32/devices/printer.svg?scale=0.7 \ |
|
431 |
22x22/places/plugins.png \ |
|
432 |
- 22x22/categories/preferences-system.png \ |
|
433 |
+ 32x32/categories/preferences-system.svg?scale=0.7 \ |
|
434 |
Blank24.gif |
|
435 |
#}}} |
|
436 |
||
437 |
@@ -163,31 +166,31 @@ |
|
438 |
print \ |
|
439 |
- \ |
|
440 |
exit |
|
441 |
-new-file.icon.small=16x16/actions/document-new.png |
|
442 |
-new-file-in-mode.icon.small=16x16/actions/document-new.png |
|
443 |
-open-file.icon.small=16x16/actions/document-open.png |
|
444 |
-reload.icon.small=16x16/actions/view-refresh.png |
|
445 |
-reload-all.icon.small=16x16/actions/view-refresh.png |
|
446 |
-close-buffer.icon.small=16x16/actions/document-close.png |
|
447 |
-closeall-bufferset.icon.small=16x16/actions/document-close.png |
|
448 |
-closeall-except-active.icon.small=16x16/actions/document-close.png |
|
449 |
-global-close-buffer.icon.small=16x16/actions/document-close.png |
|
450 |
-close-all.icon.small=16x16/actions/document-close.png |
|
451 |
-save.icon.small=16x16/actions/document-save.png |
|
452 |
-save-as.icon.small=16x16/actions/document-save-as.png |
|
453 |
-save-a-copy-as.icon.small=16x16/actions/document-save-as.png |
|
454 |
-save-all.icon.small=16x16/actions/document-save-all.png |
|
455 |
-print.icon.small=16x16/actions/document-print.png |
|
456 |
-page-setup.icon.small=16x16/actions/document-properties.png |
|
457 |
-exit.icon.small=16x16/actions/process-stop.png |
|
458 |
-exit.icon.medium=22x22/actions/process-stop.png |
|
459 |
+new-file.icon.small=32x32/actions/document-new.svg?scale=0.5 |
|
460 |
+new-file-in-mode.icon.small=32x32/actions/document-new.svg?scale=0.5 |
|
461 |
+open-file.icon.small=32x32/actions/document-open.svg?scale=0.5 |
|
462 |
+reload.icon.small=16x16/actions/view-refresh.svg |
|
463 |
+reload-all.icon.small=16x16/actions/view-refresh.svg |
|
464 |
+close-buffer.icon.small=32x32/actions/process-stop.svg?scale=0.5 |
|
465 |
+closeall-bufferset.icon.small=32x32/actions/process-stop.svg?scale=0.5 |
|
466 |
+closeall-except-active.icon.small=32x32/actions/process-stop.svg?scale=0.5 |
|
467 |
+global-close-buffer.icon.small=32x32/actions/process-stop.svg?scale=0.5 |
|
468 |
+close-all.icon.small=32x32/actions/process-stop.svg?scale=0.5 |
|
469 |
+save.icon.small=32x32/actions/document-save.svg?scale=0.5 |
|
470 |
+save-as.icon.small=32x32/actions/document-save-as.svg?scale=0.5 |
|
471 |
+save-a-copy-as.icon.small=32x32/actions/document-save-as.svg?scale=0.5 |
|
472 |
+save-all.icon.small=32x32/actions/document-save.svg?scale=0.5 |
|
473 |
+print.icon.small=32x32/actions/document-print.svg?scale=0.5 |
|
474 |
+page-setup.icon.small=32x32/actions/document-properties.svg?scale=0.5 |
|
475 |
+exit.icon.small=16x16/actions/system-log-out.svg |
|
476 |
+exit.icon.medium=22x22/actions/system-log-out.svg |
|
477 |
||
478 |
#{{{ Recent Files menu |
|
479 |
recent-files.code=new RecentFilesProvider(); |
|
480 |
#}}} |
|
481 |
||
482 |
reload-encoding.code=new ReloadWithEncodingProvider(); |
|
483 |
-reload-encoding.icon.small=16x16/actions/view-refresh.png |
|
484 |
+reload-encoding.icon.small=16x16/actions/view-refresh.svg |
|
485 |
#}}} |
|
486 |
||
487 |
#{{{ Edit menu |
|
488 |
@@ -211,12 +214,12 @@ |
|
489 |
%text \ |
|
490 |
%indent \ |
|
491 |
%source |
|
492 |
-undo.icon.small=16x16/actions/edit-undo.png |
|
493 |
-redo.icon.small=16x16/actions/edit-redo.png |
|
494 |
-cut.icon.small=16x16/actions/edit-cut.png |
|
495 |
-copy.icon.small=16x16/actions/edit-copy.png |
|
496 |
-paste.icon.small=16x16/actions/edit-paste.png |
|
497 |
-select-all.icon.small=16x16/actions/edit-select-all.png |
|
498 |
+undo.icon.small=32x32/actions/edit-undo.svg?scale=0.5 |
|
499 |
+redo.icon.small=32x32/actions/edit-redo.svg?scale=0.5 |
|
500 |
+cut.icon.small=32x32/actions/edit-cut.svg?scale=0.5 |
|
501 |
+copy.icon.small=32x32/actions/edit-copy.svg?scale=0.5 |
|
502 |
+paste.icon.small=32x32/actions/edit-paste.svg?scale=0.5 |
|
503 |
+select-all.icon.small=16x16/actions/edit-select-all.svg |
|
504 |
||
505 |
#{{{ More Clipboard menu |
|
506 |
clipboard=cut-append \ |
|
507 |
@@ -308,16 +311,18 @@ |
|
508 |
regexp \ |
|
509 |
- \ |
|
510 |
hypersearch-results |
|
511 |
-find.icon.small=22x22/actions/edit-find.png |
|
512 |
-find-next.icon.small=22x22/actions/edit-find-next.png |
|
513 |
-search-in-directory.icon.small=22x22/actions/edit-find-in-folder.png |
|
514 |
-replace-in-selection.icon.small=22x22/actions/edit-find-replace.png |
|
515 |
-replace-and-find-next.icon.small=22x22/actions/edit-find-replace.png |
|
516 |
-replace-all.icon.small=22x22/actions/edit-find-replace.png |
|
517 |
-quick-search.icon.small=22x22/actions/edit-find.png |
|
518 |
-hypersearch.icon.small=22x22/actions/edit-find-multiple.png |
|
519 |
-quick-search-word.icon.small=22x22/actions/edit-find.png |
|
520 |
-hypersearch-word.icon.small=22x22/actions/edit-find.png |
|
521 |
+find.icon.small=32x32/actions/edit-find.svg?scale=0.7 |
|
522 |
+find-prev.icon.small=32x32/actions/go-previous.svg?scale=0.7 |
|
523 |
+find-next.icon.small=32x32/actions/go-next.svg?scale=0.7 |
|
524 |
+search-in-open-buffers.icon.small=32x32/actions/system-search.svg?scale=0.7 |
|
525 |
+search-in-directory.icon.small=32x32/actions/system-search.svg?scale=0.7 |
|
526 |
+replace-in-selection.icon.small=32x32/actions/edit-find-replace.svg?scale=0.7 |
|
527 |
+replace-and-find-next.icon.small=32x32/actions/edit-find-replace.svg?scale=0.7 |
|
528 |
+replace-all.icon.small=32x32/actions/edit-find-replace.svg?scale=0.7 |
|
529 |
+quick-search.icon.small=32x32/actions/edit-find.svg?scale=0.7 |
|
530 |
+hypersearch.icon.small=32x32/actions/edit-find.svg?scale=0.7 |
|
531 |
+quick-search-word.icon.small=32x32/actions/edit-find.svg?scale=0.7 |
|
532 |
+hypersearch-word.icon.small=32x32/actions/edit-find.svg?scale=0.7 |
|
533 |
#}}} |
|
534 |
||
535 |
#{{{ Markers menu |
|
536 |
@@ -336,12 +341,12 @@ |
|
537 |
view-markers \ |
|
538 |
- |
|
539 |
markers.code=new MarkersProvider(); |
|
540 |
-add-marker.icon.small=22x22/actions/bookmark-new.png |
|
541 |
-add-marker-shortcut.icon.small=22x22/actions/bookmark-new.png |
|
542 |
-remove-all-markers.icon.small=22x22/actions/edit-clear.png |
|
543 |
-goto-marker.icon.small=22x22/actions/go-jump.png |
|
544 |
-prev-marker.icon.small=22x22/actions/go-previous.png |
|
545 |
-next-marker.icon.small=22x22/actions/go-next.png |
|
546 |
+add-marker.icon.small=32x32/actions/bookmark-new.svg?scale=0.7 |
|
547 |
+add-marker-shortcut.icon.small=32x32/actions/bookmark-new.svg?scale=0.7 |
|
548 |
+remove-all-markers.icon.small=32x32/actions/edit-clear.svg?scale=0.7 |
|
549 |
+goto-marker.icon.small=32x32/actions/go-jump.svg?scale=0.7 |
|
550 |
+prev-marker.icon.small=32x32/actions/go-previous.svg?scale=0.7 |
|
551 |
+next-marker.icon.small=32x32/actions/go-next.svg?scale=0.7 |
|
552 |
#}}} |
|
553 |
||
554 |
#{{{ Folding menu |
|
555 |
@@ -388,9 +393,12 @@ |
|
556 |
- \ |
|
557 |
set-view-title \ |
|
558 |
toggle-full-screen |
|
559 |
-new-view.icon.small=16x16/actions/window-new.png |
|
560 |
-new-plain-view.icon.small=16x16/actions/window-new.png |
|
561 |
-close-view.icon.small=16x16/actions/document-close.png |
|
562 |
+new-view.icon.small=32x32/actions/window-new.svg?scale=0.5 |
|
563 |
+new-plain-view.icon.small=32x32/actions/window-new.svg?scale=0.5 |
|
564 |
+close-view.icon.small=32x32/actions/process-stop.svg?scale=0.5 |
|
565 |
+prev-buffer.icon.small=32x32/actions/go-previous.svg?scale=0.5 |
|
566 |
+next-buffer.icon.small=32x32/actions/go-next.svg?scale=0.5 |
|
567 |
+recent-buffer.icon.small=32x32/actions/go-up.svg?scale=0.5 |
|
568 |
||
569 |
#{{{ Scrolling menu |
|
570 |
scrolling=scroll-to-current-line \ |
|
571 |
@@ -454,9 +462,9 @@ |
|
572 |
- \ |
|
573 |
%quick-options |
|
574 |
||
575 |
-buffer-options.icon.small=16x16/actions/document-properties.png |
|
576 |
-global-options.icon.small=16x16/categories/preferences-system.png |
|
577 |
-combined-options.icon.small=16x16/categories/preferences-system.png |
|
578 |
+buffer-options.icon.small=32x32/actions/document-properties.svg?scale=0.5 |
|
579 |
+global-options.icon.small=32x32/categories/preferences-system.svg?scale=0.5 |
|
580 |
+combined-options.icon.small=32x32/categories/preferences-system.svg?scale=0.5 |
|
581 |
||
582 |
#{{{ Recent Directories menu |
|
583 |
recent-directories.code=new RecentDirectoriesProvider(); |
|
584 |
@@ -518,9 +526,9 @@ |
|
585 |
rescan-macros \ |
|
586 |
- |
|
587 |
macros.code=new MacrosProvider(); |
|
588 |
-new-macro.icon.small=16x16/actions/document-new.png |
|
589 |
-record-macro.icon.small=16x16/actions/media-record.png |
|
590 |
-stop-recording.icon.small=16x16/actions/media-playback-stop.png |
|
591 |
+new-macro.icon.small=32x32/actions/document-new.svg?scale=0.5 |
|
592 |
+record-macro.icon.small=16x16/actions/media-record.svg |
|
593 |
+stop-recording.icon.small=32x32/actions/media-playback-stop.svg?scale=0.5 |
|
594 |
#}}} |
|
595 |
||
596 |
#{{{ Plugins menu |
|
597 |
@@ -771,7 +779,7 @@ |
|
598 |
||
599 |
#{{{ HyperSearch results dialog |
|
600 |
hypersearch-results.clear.icon=22x22/actions/edit-clear.png |
|
601 |
-hypersearch-results.stop.icon=22x22/actions/process-stop.png |
|
602 |
+hypersearch-results.stop.icon=22x22/actions/system-log-out.png |
|
603 |
hypersearch-results.multi.multiple.icon=22x22/actions/edit-find-multiple.png |
|
604 |
hypersearch-results.multi.single.icon=22x22/actions/edit-find-single.png |
|
605 |
hypersearch-results.match.highlight.icon=22x22/actions/edit-find-highlight-match.png |
|
606 |
@@ -784,8 +792,8 @@ |
|
607 |
#}}} |
|
608 |
||
609 |
#{{{ Help Viewer |
|
610 |
-helpviewer.back.icon=22x22/actions/go-previous.png |
|
611 |
-helpviewer.forward.icon=22x22/actions/go-next.png |
|
612 |
+helpviewer.back.icon=32x32/actions/go-previous.svg?scale=0.7 |
|
613 |
+helpviewer.forward.icon=32x32/actions/go-next.svg?scale=0.7 |
|
614 |
#}}} |
|
615 |
||
616 |
#}}} |
|
617 |
@@ -809,9 +817,9 @@ |
|
618 |
||
619 |
#{{{ Abbreviations pane |
|
620 |
options.abbrevs.code=new AbbrevsOptionPane(); |
|
621 |
-options.abbrevs.add.icon=22x22/actions/list-add.png |
|
622 |
-options.abbrevs.edit.icon=22x22/actions/document-properties.png |
|
623 |
-options.abbrevs.remove.icon=22x22/actions/list-remove.png |
|
624 |
+options.abbrevs.add.icon=32x32/actions/list-add.svg?scale=0.7 |
|
625 |
+options.abbrevs.edit.icon=32x32/actions/document-properties.svg?scale=0.7 |
|
626 |
+options.abbrevs.remove.icon=32x32/actions/list-remove.svg?scale=0.7 |
|
627 |
#}}} |
|
628 |
||
629 |
#{{{ Appearance pane |
|
630 |
@@ -840,11 +848,11 @@ |
|
631 |
||
632 |
#{{{ Context Menu pane |
|
633 |
options.context.code=new ContextOptionPane(); |
|
634 |
-options.context.add.icon=22x22/actions/list-add.png |
|
635 |
-options.context.remove.icon=22x22/actions/list-remove.png |
|
636 |
-options.context.moveUp.icon=22x22/actions/go-up.png |
|
637 |
-options.context.moveDown.icon=22x22/actions/go-down.png |
|
638 |
-options.context.reset.icon=22x22/actions/edit-clear.png |
|
639 |
+options.context.add.icon=32x32/actions/list-add.svg?scale=0.7 |
|
640 |
+options.context.remove.icon=32x32/actions/list-remove.svg?scale=0.7 |
|
641 |
+options.context.moveUp.icon=32x32/actions/go-up.svg?scale=0.7 |
|
642 |
+options.context.moveDown.icon=32x32/actions/go-down.svg?scale=0.7 |
|
643 |
+options.context.reset.icon=32x32/actions/edit-clear.svg?scale=0.7 |
|
644 |
options.context.includeOptionsLink=true |
|
645 |
#}}} |
|
646 |
||
647 |
@@ -906,12 +914,12 @@ |
|
648 |
||
649 |
#{{{ Tool Bar pane |
|
650 |
options.toolbar.code=new ToolBarOptionPane(); |
|
651 |
-options.toolbar.add.icon=22x22/actions/list-add.png |
|
652 |
-options.toolbar.remove.icon=22x22/actions/list-remove.png |
|
653 |
-options.toolbar.moveUp.icon=22x22/actions/go-up.png |
|
654 |
-options.toolbar.moveDown.icon=22x22/actions/go-down.png |
|
655 |
-options.toolbar.reset.icon=22x22/actions/edit-clear.png |
|
656 |
-options.toolbar.edit.icon=22x22/actions/document-properties.png |
|
657 |
+options.toolbar.add.icon=32x32/actions/list-add.svg?scale=0.7 |
|
658 |
+options.toolbar.remove.icon=32x32/actions/list-remove.svg?scale=0.7 |
|
659 |
+options.toolbar.moveUp.icon=22x22/actions/go-up.svg |
|
660 |
+options.toolbar.moveDown.icon=22x22/actions/go-down.svg |
|
661 |
+options.toolbar.reset.icon=22x22/actions/edit-clear.svg |
|
662 |
+options.toolbar.edit.icon=32x32/actions/document-properties.svg?scale=0.7 |
|
663 |
#}}} |
|
664 |
||
665 |
#{{{ View pane |
|
666 |
@@ -949,7 +957,8 @@ |
|
667 |
vfs.browser.default-filter=*[^~#] |
|
668 |
vfs.browser.filter-enabled=true |
|
669 |
vfs.browser.file.icon=16x16/mimetypes/text-x-generic.png |
|
670 |
-vfs.browser.icon.small=16x16/apps/system-file-manager.png |
|
671 |
+vfs.browser.icon=32x32/apps/system-file-manager.svg?scale=0.7 |
|
672 |
+vfs.browser.icon.small=32x32/apps/system-file-manager.svg?scale=0.5 |
|
673 |
vfs.browser.open-file.icon=16x16/actions/edit-select-all.png |
|
674 |
vfs.browser.dir.icon=16x16/places/folder.png |
|
675 |
vfs.browser.open-dir.icon=16x16/status/folder-open.png |
|
676 |
@@ -1007,13 +1016,13 @@ |
|
677 |
plugin-manager.mirror-url=http://plugins.jedit.org/export/mirror_list.php |
|
678 |
||
679 |
#{{{ Plugin management |
|
680 |
-manage-plugins.restore.icon=22x22/actions/document-open.png |
|
681 |
-manage-plugins.save.icon=22x22/actions/document-save.png |
|
682 |
+manage-plugins.restore.icon=32x32/actions/document-open.svg?scale=0.7 |
|
683 |
+manage-plugins.save.icon=32x32/actions/document-save.svg?scale=0.7 |
|
684 |
#}}} |
|
685 |
||
686 |
#{{{ Plugin installation |
|
687 |
-install-plugins.choose-plugin-set.icon=22x22/actions/document-open.png |
|
688 |
-install-plugins.clear-plugin-set.icon=22x22/actions/edit-clear.png |
|
689 |
+install-plugins.choose-plugin-set.icon=32x32/actions/document-open.svg?scale=0.7 |
|
690 |
+install-plugins.clear-plugin-set.icon=22x22/actions/edit-clear.svg |
|
691 |
#}}} |
|
692 |
||
693 |
#}}} |
|
694 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/options/BrowserColorsOptionPane.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/options/BrowserColorsOptionPane.java |
|
695 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/options/BrowserColorsOptionPane.java 2024-08-03 19:53:15.000000000 +0200 |
|
82625
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
696 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/options/BrowserColorsOptionPane.java 2025-05-14 10:51:38.322378673 +0200 |
82624 | 697 |
@@ -78,12 +78,12 @@ |
698 |
buttons.setBorder(new EmptyBorder(3,0,0,0)); |
|
699 |
buttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS)); |
|
700 |
ActionListener actionHandler = new ActionHandler(); |
|
701 |
- JButton add = new RolloverButton(GUIUtilities.loadIcon("Plus.png")); |
|
702 |
+ JButton add = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("common.add.icon"))); |
|
703 |
add.setToolTipText(jEdit.getProperty("common.add")); |
|
704 |
add.addActionListener(e -> colorsModel.add()); |
|
705 |
buttons.add(add); |
|
706 |
buttons.add(Box.createHorizontalStrut(6)); |
|
707 |
- remove = new RolloverButton(GUIUtilities.loadIcon("Minus.png")); |
|
708 |
+ remove = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("common.remove.icon"))); |
|
709 |
remove.setToolTipText(jEdit.getProperty("common.remove")); |
|
710 |
remove.addActionListener(e -> |
|
711 |
{ |
|
712 |
@@ -93,12 +93,12 @@ |
|
713 |
}); |
|
714 |
buttons.add(remove); |
|
715 |
buttons.add(Box.createHorizontalStrut(6)); |
|
716 |
- moveUp = new RolloverButton(GUIUtilities.loadIcon("ArrowU.png")); |
|
717 |
+ moveUp = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("common.moveUp.icon"))); |
|
718 |
moveUp.setToolTipText(jEdit.getProperty("common.moveUp")); |
|
719 |
moveUp.addActionListener(actionHandler); |
|
720 |
buttons.add(moveUp); |
|
721 |
buttons.add(Box.createHorizontalStrut(6)); |
|
722 |
- moveDown = new RolloverButton(GUIUtilities.loadIcon("ArrowD.png")); |
|
723 |
+ moveDown = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("common.moveDown.icon"))); |
|
724 |
moveDown.setToolTipText(jEdit.getProperty("common.moveDown")); |
|
725 |
moveDown.addActionListener(actionHandler); |
|
726 |
buttons.add(moveDown); |
|
82625
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
727 |
@@ -209,8 +209,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
728 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
729 |
entries.add(new Entry(glob, |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
730 |
jEdit.getColorProperty( |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
731 |
- "vfs.browser.colors." + i + ".color", |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
732 |
- Color.black))); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
733 |
+ "vfs.browser.colors." + i + ".color"))); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
734 |
i++; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
735 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
736 |
} //}}} |
82624 | 737 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/options/StatusBarOptionPane.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/options/StatusBarOptionPane.java |
738 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/options/StatusBarOptionPane.java 2024-08-03 19:53:15.000000000 +0200 |
|
739 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/options/StatusBarOptionPane.java 2025-04-16 16:12:37.730958557 +0200 |
|
740 |
@@ -160,12 +160,12 @@ |
|
741 |
buttons.setBorder(new EmptyBorder(3,0,0,0)); |
|
742 |
buttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS)); |
|
743 |
buttons.add(Box.createHorizontalStrut(6)); |
|
744 |
- moveUp = new RolloverButton(GUIUtilities.loadIcon("ArrowU.png")); |
|
745 |
+ moveUp = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("common.moveUp.icon"))); |
|
746 |
moveUp.setToolTipText(jEdit.getProperty("options.status.moveUp")); |
|
747 |
moveUp.addActionListener(e -> moveUp()); |
|
748 |
buttons.add(moveUp); |
|
749 |
buttons.add(Box.createHorizontalStrut(6)); |
|
750 |
- moveDown = new RolloverButton(GUIUtilities.loadIcon("ArrowD.png")); |
|
751 |
+ moveDown = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("common.moveDown.icon"))); |
|
752 |
moveDown.setToolTipText(jEdit.getProperty("options.status.moveDown")); |
|
753 |
moveDown.addActionListener(e -> moveDown()); |
|
754 |
buttons.add(moveDown); |
|
755 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/RegisterViewer.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/RegisterViewer.java |
|
756 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/RegisterViewer.java 2024-08-03 19:53:18.000000000 +0200 |
|
757 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/RegisterViewer.java 2025-04-16 21:45:44.861713409 +0200 |
|
758 |
@@ -54,7 +54,7 @@ |
|
759 |
toolBar.add(Box.createGlue()); |
|
760 |
||
761 |
RolloverButton pasteRegister = new RolloverButton( |
|
762 |
- GUIUtilities.loadIcon("Paste.png")); |
|
763 |
+ GUIUtilities.loadIcon(jEdit.getProperty("paste.icon"))); |
|
764 |
pasteRegister.setToolTipText(GenericGUIUtilities.prettifyMenuLabel( |
|
765 |
jEdit.getProperty("paste-string-register.label"))); |
|
766 |
pasteRegister.addActionListener(e -> insertRegister()); |
|
767 |
@@ -62,7 +62,7 @@ |
|
768 |
toolBar.add(pasteRegister); |
|
769 |
||
770 |
RolloverButton clearRegister = new RolloverButton( |
|
771 |
- GUIUtilities.loadIcon("Clear.png")); |
|
772 |
+ GUIUtilities.loadIcon(jEdit.getProperty("common.clearAll.icon"))); |
|
773 |
clearRegister.setToolTipText(GenericGUIUtilities.prettifyMenuLabel( |
|
774 |
jEdit.getProperty("clear-string-register.label"))); |
|
775 |
clearRegister.addActionListener(e -> clearSelectedIndex()); |
|
82625
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
776 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/jEdit.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/jEdit.java |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
777 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/jEdit.java 2024-08-03 19:53:14.000000000 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
778 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/jEdit.java 2025-05-15 21:20:18.075698848 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
779 |
@@ -674,6 +674,12 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
780 |
return value; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
781 |
} //}}} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
782 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
783 |
+ public static String getThemeProperty(String name) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
784 |
+ { |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
785 |
+ String s = GUIUtilities.getThemeSuffix(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
786 |
+ return s.isEmpty() ? getProperty(name) : getProperty(name + s, getProperty(name)); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
787 |
+ } |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
788 |
+ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
789 |
//{{{ getProperty() method |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
790 |
/** |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
791 |
* Returns the property with the specified name.<p> |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
792 |
@@ -859,7 +865,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
793 |
*/ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
794 |
public static Color getColorProperty(String name) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
795 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
796 |
- return getColorProperty(name,Color.black); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
797 |
+ return getColorProperty(name, GUIUtilities.defaultFgColor()); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
798 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
799 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
800 |
/** |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
801 |
@@ -870,7 +876,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
802 |
*/ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
803 |
public static Color getColorProperty(String name, Color def) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
804 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
805 |
- String value = getProperty(name); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
806 |
+ String value = getThemeProperty(name); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
807 |
if(value == null) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
808 |
return def; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
809 |
else |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
810 |
@@ -886,7 +892,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
811 |
*/ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
812 |
public static void setColorProperty(String name, Color value) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
813 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
814 |
- setProperty(name, SyntaxUtilities.getColorHexString(value)); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
815 |
+ setThemeProperty(name, SyntaxUtilities.getColorHexString(value)); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
816 |
} //}}} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
817 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
818 |
//{{{ getColorMatrixProperty() method |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
819 |
@@ -936,6 +942,11 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
820 |
public static void setProperty(String name, String value) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
821 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
822 |
propMgr.setProperty(name,value); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
823 |
+ } |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
824 |
+ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
825 |
+ public static void setThemeProperty(String name, String value) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
826 |
+ { |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
827 |
+ setProperty(name + GUIUtilities.getThemeSuffix(), value); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
828 |
} //}}} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
829 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
830 |
//{{{ setTemporaryProperty() method |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
831 |
@@ -4233,7 +4244,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
832 |
} //}}} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
833 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
834 |
//{{{ gotoMarker() method |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
835 |
- private static void gotoMarker(final View view, final Buffer buffer, |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
836 |
+ public static void gotoMarker(final View view, final Buffer buffer, |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
837 |
final String marker) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
838 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
839 |
AwtRunnableQueue.INSTANCE.runAfterIoTasks(new Runnable() |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
840 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/BufferSwitcher.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/BufferSwitcher.java |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
841 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/BufferSwitcher.java 2024-08-03 19:53:16.000000000 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
842 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/BufferSwitcher.java 2025-05-13 16:29:14.196283445 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
843 |
@@ -58,7 +58,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
844 |
public static final DataFlavor BufferDataFlavor = new DataFlavor(BufferTransferableData.class, DataFlavor.javaJVMLocalObjectMimeType); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
845 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
846 |
// actual colors will be set in constructor, here are just fallback values |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
847 |
- static Color defaultColor = Color.BLACK; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
848 |
+ static Color defaultColor = GUIUtilities.defaultFgColor(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
849 |
static Color defaultBGColor = Color.LIGHT_GRAY; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
850 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
851 |
public BufferSwitcher(final EditPane editPane) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
852 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/LogViewer.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/LogViewer.java |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
853 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/LogViewer.java 2024-08-03 19:53:16.000000000 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
854 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/LogViewer.java 2025-05-14 11:05:39.544481221 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
855 |
@@ -413,7 +413,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
856 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
857 |
this.list = list; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
858 |
debugColor = jEdit.getColorProperty("log-viewer.message.debug.color", Color.BLUE); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
859 |
- messageColor = jEdit.getColorProperty("log-viewer.message.message.color", Color.BLACK); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
860 |
+ messageColor = jEdit.getColorProperty("log-viewer.message.message.color"); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
861 |
noticeColor = jEdit.getColorProperty("log-viewer.message.notice.color", Color.GREEN); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
862 |
warningColor = jEdit.getColorProperty("log-viewer.message.warning.color", Color.ORANGE); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
863 |
errorColor = jEdit.getColorProperty("log-viewer.message.error.color", Color.RED); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
864 |
diff -ru /home/makarius/.isabelle/contrib/jedit-20250424/jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/io/VFS.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/io/VFS.java |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
865 |
--- /home/makarius/.isabelle/contrib/jedit-20250424/jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/io/VFS.java 2024-08-03 19:53:14.000000000 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
866 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/io/VFS.java 2025-05-14 10:51:16.530755624 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
867 |
@@ -1302,8 +1302,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
868 |
colors.add(new ColorEntry( |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
869 |
Pattern.compile(StandardUtilities.globToRE(glob)), |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
870 |
jEdit.getColorProperty( |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
871 |
- "vfs.browser.colors." + i + ".color", |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
872 |
- Color.black))); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
873 |
+ "vfs.browser.colors." + i + ".color"))); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
874 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
875 |
catch(PatternSyntaxException e) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
876 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
877 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/util/SyntaxUtilities.java jedit5.7.0-patched/jEdit/org/gjt/sp/util/SyntaxUtilities.java |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
878 |
--- jedit5.7.0/jEdit/org/gjt/sp/util/SyntaxUtilities.java 2024-08-03 19:53:21.000000000 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
879 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/util/SyntaxUtilities.java 2025-05-14 15:20:40.515623017 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
880 |
@@ -35,6 +35,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
881 |
import org.gjt.sp.jedit.syntax.SyntaxStyle; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
882 |
import org.gjt.sp.jedit.syntax.Token; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
883 |
import org.gjt.sp.jedit.IPropertyManager; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
884 |
+import org.gjt.sp.jedit.GUIUtilities; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
885 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
886 |
import static java.util.stream.Collectors.joining; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
887 |
//}}} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
888 |
@@ -49,6 +50,15 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
889 |
public class SyntaxUtilities |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
890 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
891 |
public static IPropertyManager propertyManager; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
892 |
+ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
893 |
+ public static String getThemeProperty(String name) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
894 |
+ { |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
895 |
+ String s = GUIUtilities.getThemeSuffix(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
896 |
+ String a = propertyManager.getProperty(name); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
897 |
+ String b = propertyManager.getProperty(name + s); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
898 |
+ return b == null ? a : b; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
899 |
+ } |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
900 |
+ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
901 |
private static final Pattern COLOR_MATRIX_PATTERN = Pattern.compile("(?x)\n" + |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
902 |
"^\n" + |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
903 |
"\\s*+ # optionally preceded by whitespace\n" + |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
904 |
@@ -125,7 +135,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
905 |
*/ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
906 |
public static Color parseColor(String name) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
907 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
908 |
- return parseColor(name, Color.black); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
909 |
+ return parseColor(name, GUIUtilities.defaultFgColor()); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
910 |
} //}}} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
911 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
912 |
//{{{ parseColor() method |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
913 |
@@ -267,7 +277,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
914 |
if(s.startsWith("color:")) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
915 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
916 |
if(color) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
917 |
- fgColor = parseColor(s.substring(6), Color.black); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
918 |
+ fgColor = parseColor(s.substring(6), GUIUtilities.defaultFgColor()); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
919 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
920 |
else if(s.startsWith("bgColor:")) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
921 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
922 |
@@ -311,7 +321,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
923 |
boolean color) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
924 |
throws IllegalArgumentException |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
925 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
926 |
- return parseStyle(str, family, size, color, Color.black); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
927 |
+ return parseStyle(str, family, size, color, GUIUtilities.defaultFgColor()); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
928 |
} //}}} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
929 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
930 |
//{{{ loadStyles() methods |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
931 |
@@ -347,9 +357,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
932 |
String styleName = "view.style." |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
933 |
+ Token.tokenToString((byte)i) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
934 |
.toLowerCase(Locale.ENGLISH); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
935 |
- styles[i] = parseStyle( |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
936 |
- propertyManager.getProperty(styleName), |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
937 |
- family,size,color); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
938 |
+ styles[i] = parseStyle(getThemeProperty(styleName),family,size,color); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
939 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
940 |
catch(Exception e) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
941 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
942 |
@@ -357,8 +365,28 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
943 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
944 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
945 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
946 |
- return styles; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
947 |
+ styles[0] = |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
948 |
+ new SyntaxStyle(org.gjt.sp.jedit.jEdit.getColorProperty("view.fgColor", GUIUtilities.defaultFgColor()), |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
949 |
+ null, new Font(family, 0, size)); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
950 |
+ return _styleExtender.extendStyles(styles); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
951 |
} //}}} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
952 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
953 |
+ /** |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
954 |
+ * Extended styles derived from the user-specified style array. |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
955 |
+ */ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
956 |
+ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
957 |
+ public static class StyleExtender |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
958 |
+ { |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
959 |
+ public SyntaxStyle[] extendStyles(SyntaxStyle[] styles) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
960 |
+ { |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
961 |
+ return styles; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
962 |
+ } |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
963 |
+ } |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
964 |
+ volatile private static StyleExtender _styleExtender = new StyleExtender(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
965 |
+ public static void setStyleExtender(StyleExtender ext) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
966 |
+ { |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
967 |
+ _styleExtender = ext; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
968 |
+ } |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
969 |
+ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
970 |
private SyntaxUtilities(){} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
971 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
972 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/EditPane.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/EditPane.java |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
973 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/EditPane.java 2024-08-03 19:53:15.000000000 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
974 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/EditPane.java 2025-05-14 15:46:36.934878462 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
975 |
@@ -43,6 +43,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
976 |
import org.gjt.sp.jedit.msg.BufferChanging; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
977 |
import org.gjt.sp.jedit.msg.BufferUpdate; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
978 |
import org.gjt.sp.jedit.msg.EditPaneUpdate; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
979 |
+import org.gjt.sp.jedit.msg.PositionChanging; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
980 |
import org.gjt.sp.jedit.msg.PropertiesChanged; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
981 |
import org.gjt.sp.jedit.options.GeneralOptionPane; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
982 |
import org.gjt.sp.jedit.options.GutterOptionPane; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
983 |
@@ -380,9 +381,11 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
984 |
buffer.unsetProperty(Buffer.CARET_POSITIONED); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
985 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
986 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
987 |
- if(caret != -1) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
988 |
+ if(caret != -1) { |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
989 |
textArea.setCaretPosition(Math.min(caret, |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
990 |
buffer.getLength())); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
991 |
+ EditBus.send(new PositionChanging(this)); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
992 |
+ } |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
993 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
994 |
// set any selections |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
995 |
Selection[] selection = caretInfo.selection; |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
996 |
@@ -1029,7 +1032,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
997 |
for(int i = 0; i <= 3; i++) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
998 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
999 |
foldLineStyle[i] = SyntaxUtilities.parseStyle( |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1000 |
- jEdit.getProperty("view.style.foldLine." + i), |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1001 |
+ jEdit.getThemeProperty("view.style.foldLine." + i), |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1002 |
defaultFont,defaultFontSize, true); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1003 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1004 |
painter.setFoldLineStyle(foldLineStyle); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1005 |
diff -ru /home/makarius/.isabelle/contrib/jedit-20250424/jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/NumericTextField.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/NumericTextField.java |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1006 |
--- /home/makarius/.isabelle/contrib/jedit-20250424/jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/NumericTextField.java 2024-08-03 19:53:18.000000000 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1007 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/NumericTextField.java 2025-05-14 15:46:44.805742407 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1008 |
@@ -95,7 +95,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1009 |
Font font = getFont(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1010 |
String family = font.getFamily(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1011 |
int size = font.getSize(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1012 |
- invalidStyle = SyntaxUtilities.parseStyle(jEdit.getProperty("view.style.invalid"), family, size, true); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1013 |
+ invalidStyle = SyntaxUtilities.parseStyle(jEdit.getThemeProperty("view.style.invalid"), family, size, true); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1014 |
defaultForeground = getForeground(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1015 |
defaultBackground = getBackground(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1016 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1017 |
diff -ru /home/makarius/.isabelle/contrib/jedit-20250424/jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/statusbar/ErrorsWidgetFactory.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/statusbar/ErrorsWidgetFactory.java |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1018 |
--- /home/makarius/.isabelle/contrib/jedit-20250424/jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/statusbar/ErrorsWidgetFactory.java 2024-08-03 19:53:16.000000000 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1019 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/statusbar/ErrorsWidgetFactory.java 2025-05-14 15:46:52.413610804 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1020 |
@@ -102,7 +102,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1021 |
String defaultFont = jEdit.getProperty("view.font"); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1022 |
int defaultFontSize = jEdit.getIntegerProperty("view.fontsize", 12); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1023 |
SyntaxStyle invalid = SyntaxUtilities.parseStyle( |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1024 |
- jEdit.getProperty("view.style.invalid"), |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1025 |
+ jEdit.getThemeProperty("view.style.invalid"), |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1026 |
defaultFont,defaultFontSize, true); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1027 |
foregroundColor = invalid.getForegroundColor(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1028 |
setForeground(foregroundColor); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1029 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/options/SyntaxHiliteOptionPane.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/options/SyntaxHiliteOptionPane.java |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1030 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/options/SyntaxHiliteOptionPane.java 2024-08-03 19:53:15.000000000 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1031 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/options/SyntaxHiliteOptionPane.java 2025-05-15 21:23:50.047418219 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1032 |
@@ -222,8 +222,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1033 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1034 |
for (StyleChoice ch : styleChoices) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1035 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1036 |
- jEdit.setProperty(ch.property, |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1037 |
- GUIUtilities.getStyleString(ch.style)); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1038 |
+ jEdit.setThemeProperty(ch.property,GUIUtilities.getStyleString(ch.style)); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1039 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1040 |
} //}}} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1041 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1042 |
@@ -233,7 +232,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1043 |
Font font = new JLabel().getFont(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1044 |
styleChoices.add(new StyleChoice(label, |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1045 |
property, |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1046 |
- SyntaxUtilities.parseStyle(jEdit.getProperty(property), |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1047 |
+ SyntaxUtilities.parseStyle(jEdit.getThemeProperty(property), |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1048 |
font.getFamily(), font.getSize(), true))); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1049 |
} //}}} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1050 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1051 |
@@ -289,8 +288,8 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1052 |
else |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1053 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1054 |
// this part sucks |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1055 |
- setBackground(jEdit.getColorProperty( |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1056 |
- "view.bgColor")); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1057 |
+ setBackground( |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1058 |
+ jEdit.getColorProperty("view.bgColor", GUIUtilities.defaultBgColor())); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1059 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1060 |
setFont(style.getFont()); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1061 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1062 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/StyleEditor.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/StyleEditor.java |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1063 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/StyleEditor.java 2024-08-03 19:53:18.000000000 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1064 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/StyleEditor.java 2025-05-14 15:48:00.821423396 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1065 |
@@ -90,12 +90,12 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1066 |
String property = "view.style." + typeName.toLowerCase(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1067 |
Font font = new JLabel().getFont(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1068 |
SyntaxStyle currentStyle = SyntaxUtilities.parseStyle( |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1069 |
- jEdit.getProperty(property), font.getFamily(), font.getSize(), true); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1070 |
+ jEdit.getThemeProperty(property), font.getFamily(), font.getSize(), true); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1071 |
SyntaxStyle style = new StyleEditor(textArea.getView(), |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1072 |
currentStyle, typeName).getStyle(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1073 |
if(style != null) |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1074 |
{ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1075 |
- jEdit.setProperty(property, GUIUtilities.getStyleString(style)); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1076 |
+ jEdit.setProperty(property + GUIUtilities.getThemeSuffix(), GUIUtilities.getStyleString(style)); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1077 |
jEdit.propertiesChanged(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1078 |
} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1079 |
} //}}} |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1080 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/search/SearchBar.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/search/SearchBar.java |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1081 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/search/SearchBar.java 2024-08-03 19:53:18.000000000 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1082 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/search/SearchBar.java 2025-05-14 15:49:19.228054251 +0200 |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1083 |
@@ -51,6 +51,10 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1084 |
setFloatable(false); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1085 |
add(Box.createHorizontalStrut(2)); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1086 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1087 |
+ if (!jEdit.getProperty("navigate-toolbar", "").isEmpty()) { |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1088 |
+ add(GUIUtilities.loadToolBar("navigate-toolbar")); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1089 |
+ } |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1090 |
+ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1091 |
JLabel label = new JLabel(jEdit.getProperty("view.search.find")); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1092 |
add(label); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1093 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1094 |
@@ -59,7 +63,7 @@ |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1095 |
add(find = new HistoryTextField("find")); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1096 |
find.setSelectAllOnFocus(true); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1097 |
|
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1098 |
- SyntaxStyle style = SyntaxUtilities.parseStyle(jEdit.getProperty("view.style.invalid"), "Dialog", 12, true); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1099 |
+ SyntaxStyle style = SyntaxUtilities.parseStyle(jEdit.getThemeProperty("view.style.invalid"), "Dialog", 12, true); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1100 |
errorBackground = style.getBackgroundColor(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1101 |
errorForeground = style.getForegroundColor(); |
0fa6759948bc
explicit support for dark GUI themes in Isabelle/jEdit;
wenzelm
parents:
82624
diff
changeset
|
1102 |
defaultBackground = find.getBackground(); |
82634
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
1103 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/help/HistoryButton.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/help/HistoryButton.java |
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
1104 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/help/HistoryButton.java 2024-08-03 19:53:20.000000000 +0200 |
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
1105 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/help/HistoryButton.java 2025-05-20 15:21:59.692613480 +0200 |
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
1106 |
@@ -61,7 +61,7 @@ |
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
1107 |
? "helpviewer.back.label" |
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
1108 |
: "helpviewer.forward.label")); |
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
1109 |
Box box = new Box(BoxLayout.X_AXIS); |
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
1110 |
- drop_button = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("dropdown-arrow.icon"))); |
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
1111 |
+ drop_button = new RolloverButton(GUIUtilities.loadIcon(jEdit.getThemeProperty("dropdown-arrow.icon"))); |
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
1112 |
drop_button.addActionListener(new DropActionHandler()); |
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
1113 |
box.add(arrow_button); |
9f85679fd899
proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents:
82625
diff
changeset
|
1114 |
box.add(drop_button); |
82636
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1115 |
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/OptionsDialog.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/OptionsDialog.java |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1116 |
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/OptionsDialog.java 2024-08-03 19:53:18.000000000 +0200 |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1117 |
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/OptionsDialog.java 2025-05-20 16:27:48.111088672 +0200 |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1118 |
@@ -191,6 +191,7 @@ |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1119 |
|
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1120 |
if(optionPane != null) |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1121 |
{ |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1122 |
+ deferredOptionPanes.clear(); |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1123 |
deferredOptionPanes.put( |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1124 |
node,optionPane); |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1125 |
} |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1126 |
diff -ru jedit5.7.0/jEdit/org/jedit/options/OptionGroupPane.java jedit5.7.0-patched/jEdit/org/jedit/options/OptionGroupPane.java |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1127 |
--- jedit5.7.0/jEdit/org/jedit/options/OptionGroupPane.java 2024-08-03 19:53:23.000000000 +0200 |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1128 |
+++ jedit5.7.0-patched/jEdit/org/jedit/options/OptionGroupPane.java 2025-05-20 16:34:10.010928214 +0200 |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1129 |
@@ -151,6 +151,7 @@ |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1130 |
|
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1131 |
if (optionPane != null) |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1132 |
{ |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1133 |
+ deferredOptionPanes.clear(); |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1134 |
deferredOptionPanes.put(node, optionPane); |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1135 |
} |
692feb5e45e6
more robust Global Options panel: re-init OptionPane after switch, e.g. after change of "lookAndFeel" and re-init of GutterOptionPane, which implicitly depends on com.formdev.flatlaf.FlatLaf.isLafDark() -- requires to update jedit component;
wenzelm
parents:
82635
diff
changeset
|
1136 |
else |