src/Tools/jEdit/patches/gui
author wenzelm
Tue, 20 May 2025 16:52:27 +0200
changeset 82636 692feb5e45e6
parent 82635 8be3035c82d4
permissions -rw-r--r--
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;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
82569
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
     1
diff -ru jedit5.7.0/jEdit/org/gjt/sp/jedit/GUIUtilities.java jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/GUIUtilities.java
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
     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
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
     4
@@ -42,6 +42,8 @@
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
     5
 import java.net.URL;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
     6
 import java.util.*;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
     7
 import java.util.List;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
     8
+import java.util.regex.Pattern;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
     9
+import java.util.regex.Matcher;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    10
 import java.lang.ref.SoftReference;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    11
 
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    12
 import javax.annotation.Nonnull;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    13
@@ -72,6 +74,8 @@
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    14
 import java.util.concurrent.ScheduledExecutorService;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    15
 import java.util.concurrent.TimeUnit;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    16
 import java.util.concurrent.atomic.AtomicLong;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    17
+
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    18
+import com.formdev.flatlaf.extras.FlatSVGIcon;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    19
 //}}}
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    20
 
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    21
 /** Various GUI utility functions related to icons, menus, toolbars, keyboard shortcuts, etc.
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    22
@@ -115,14 +119,14 @@
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    23
 	 * @return the icon
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    24
 	 * @since jEdit 2.6pre7
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    25
 	 */
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    26
-	public static Icon loadIcon(String iconName)
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    27
+	public static Icon loadIcon(String iconSpec)
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    28
 	{
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    29
-		if(iconName == null)
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    30
+		if(iconSpec == null)
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    31
 			return null;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    32
 
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    33
 		// * Enable old icon naming scheme support
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    34
-		if(deprecatedIcons.containsKey(iconName))
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    35
-			iconName = deprecatedIcons.get(iconName);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    36
+		if(deprecatedIcons.containsKey(iconSpec))
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    37
+			iconSpec = deprecatedIcons.get(iconSpec);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    38
 
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    39
 		// check if there is a cached version first
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    40
 		Map<String, Icon> cache = null;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    41
@@ -135,12 +139,25 @@
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    42
 			cache = new HashMap<>();
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    43
 			iconCache = new SoftReference<>(cache);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    44
 		}
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    45
-		Icon icon = cache.get(iconName);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    46
+		Icon icon = cache.get(iconSpec);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    47
 		if(icon != null)
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    48
 			return icon;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    49
 
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    50
 		URL url;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    51
 
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    52
+		float iconScale = 1.0f;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    53
+ 		String iconName = iconSpec;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    54
+       {
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    55
+        	Matcher matcher = Pattern.compile("^([^?]+)\\?scale=(.+)$").matcher(iconSpec);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    56
+        	if (matcher.matches()) {
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    57
+        		try {
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    58
+        			iconScale = Float.valueOf(matcher.group(2));
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    59
+        			iconName = matcher.group(1);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    60
+        		}
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    61
+        		catch (NumberFormatException e) { }
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    62
+        	}
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    63
+        }
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    64
+
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    65
 		try
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    66
 		{
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    67
 			// get the icon
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    68
@@ -164,9 +181,11 @@
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    69
 			}
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    70
 		}
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    71
 
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    72
-		icon = new ImageIcon(url);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    73
+		icon =
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    74
+			url.toString().endsWith(".svg") ?
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    75
+				new FlatSVGIcon(url).derive(iconScale) : new ImageIcon(url);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    76
 
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    77
-		cache.put(iconName,icon);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    78
+		cache.put(iconSpec,icon);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    79
 		return icon;
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    80
 	} //}}}
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    81
 
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    82
@@ -1094,9 +1113,7 @@
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    83
 				return new Font("Monospaced", Font.PLAIN, 12);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    84
 			}
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    85
 			else {
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    86
-				Font font2 =
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    87
-					new Font(OperatingSystem.isWindows() ? "Lucida Console" : "Monospaced",
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    88
-						Font.PLAIN, font1.getSize());
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    89
+				Font font2 = new Font("Isabelle DejaVu Sans Mono", Font.PLAIN, font1.getSize());
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    90
 				FontRenderContext frc = new FontRenderContext(null, true, false);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    91
 				float scale =
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    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
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    94
 
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    95
 	//{{{ Colors and styles
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
    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
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   108
+	public static boolean isDarkLaf()
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   109
+	{
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   110
+		return com.formdev.flatlaf.FlatLaf.isLafDark();
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   111
+	}
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   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
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   139
 	//{{{ getStyleString() method
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   140
 	/**
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   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
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   163
 	}
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   164
 	//}}}
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   165
 
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   166
+	//{{{ isPopupTrigger() method
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   167
+	/**
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   168
+	 * Returns if the specified event is the popup trigger event.
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   169
+	 * This implements precisely defined behavior, as opposed to
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   170
+	 * MouseEvent.isPopupTrigger().
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   171
+	 * @param evt The event
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   172
+	 * @since jEdit 3.2pre8
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   173
+	 * @deprecated use {@link GenericGUIUtilities#requestFocus(Window, Component)}
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   174
+	 */
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   175
+	@Deprecated
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   176
+	public static boolean isPopupTrigger(MouseEvent evt)
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   177
+	{
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   178
+		return GenericGUIUtilities.isPopupTrigger(evt);
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   179
+	} //}}}
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   180
+
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   181
 	//{{{ init() method
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   182
 	static void init()
782519a6ebb4 clarified patches;
wenzelm
parents:
diff changeset
   183
 	{
82624
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   184
diff -ru jedit5.7.0/jEdit/build.xml jedit5.7.0-patched/jEdit/build.xml
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   185
--- jedit5.7.0/jEdit/build.xml	2024-08-03 19:53:28.000000000 +0200
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   186
+++ jedit5.7.0-patched/jEdit/build.xml	2025-04-16 17:20:57.401732024 +0200
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   187
@@ -488,6 +488,7 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   188
 				<include name="org/gjt/sp/jedit/icons/**/*.gif"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   189
 				<include name="org/gjt/sp/jedit/icons/**/*.jpg"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   190
 				<include name="org/gjt/sp/jedit/icons/**/*.png"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   191
+				<include name="org/gjt/sp/jedit/icons/**/*.svg"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   192
 				<include name="org/jedit/localization/*.props"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   193
 			</fileset>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   194
 		</jar>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   195
@@ -783,6 +784,7 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   196
 				<include name="*.txt"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   197
 				<include name="*.html"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   198
 				<include name="*.png"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   199
+				<include name="*.svg"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   200
 				<include name="tips/**"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   201
 			</fileset>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   202
 		</copy>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   203
diff -ru jedit5.7.0/jEdit/ivy.xml jedit5.7.0-patched/jEdit/ivy.xml
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   204
--- jedit5.7.0/jEdit/ivy.xml	2024-08-03 19:53:28.000000000 +0200
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   205
+++ jedit5.7.0-patched/jEdit/ivy.xml	2025-04-16 12:22:57.782535840 +0200
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   206
@@ -94,5 +94,8 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   207
 		<dependency org="com.google.code.findbugs" name="jsr305" rev="3.0.2"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   208
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   209
 		<dependency org="com.evolvedbinary.appbundler" name="appbundler" rev="1.3.0" conf="appbundler"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   210
+
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   211
+		<dependency org="com.formdev" name="flatlaf" rev="3.6"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   212
+		<dependency org="com.formdev" name="flatlaf-extras" rev="3.6"/>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   213
 	</dependencies>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   214
 </ivy-module>
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   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
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   216
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/MarkerViewer.java	2024-08-03 19:53:18.000000000 +0200
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   217
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/MarkerViewer.java	2025-04-16 21:35:23.519418287 +0200
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   218
@@ -50,28 +50,28 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   219
 		toolBar.add(Box.createGlue());
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   220
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   221
 		RolloverButton addMarker = new RolloverButton(
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   222
-			GUIUtilities.loadIcon("Plus.png"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   223
+			GUIUtilities.loadIcon(jEdit.getProperty("add-marker.icon.small")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   224
 		addMarker.setToolTipText(GenericGUIUtilities.prettifyMenuLabel(
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   225
 			jEdit.getProperty("add-marker.label")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   226
 		addMarker.addActionListener(this);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   227
 		addMarker.setActionCommand("add-marker");
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   228
 		toolBar.add(addMarker);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   229
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   230
-		previous = new RolloverButton(GUIUtilities.loadIcon("ArrowL.png"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   231
+		previous = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("prev-marker.icon.small")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   232
 		previous.setToolTipText(GenericGUIUtilities.prettifyMenuLabel(
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   233
 			jEdit.getProperty("prev-marker.label")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   234
 		previous.addActionListener(this);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   235
 		previous.setActionCommand("prev-marker");
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   236
 		toolBar.add(previous);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   237
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   238
-		next = new RolloverButton(GUIUtilities.loadIcon("ArrowR.png"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   239
+		next = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("next-marker.icon.small")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   240
 		next.setToolTipText(GenericGUIUtilities.prettifyMenuLabel(
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   241
 			jEdit.getProperty("next-marker.label")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   242
 		next.addActionListener(this);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   243
 		next.setActionCommand("next-marker");
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   244
 		toolBar.add(next);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   245
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   246
-		clear = new RolloverButton(GUIUtilities.loadIcon("Clear.png"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   247
+		clear = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("remove-all-markers.icon.small")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   248
 		clear.setToolTipText(GenericGUIUtilities.prettifyMenuLabel(
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   249
 			jEdit.getProperty("remove-all-markers.label")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   250
 		clear.addActionListener(this);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   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
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   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
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   254
@@ -8,13 +8,15 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   255
 ###
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   256
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   257
 #{{{ Common icons
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   258
-common.add.icon=22x22/actions/list-add.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   259
-common.remove.icon=22x22/actions/list-remove.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   260
-common.moveUp.icon=22x22/actions/go-up.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   261
-common.moveDown.icon=22x22/actions/go-down.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   262
-common.clearAll.icon=22x22/actions/edit-clear.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   263
+common.add.icon=32x32/actions/list-add.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   264
+common.remove.icon=32x32/actions/list-remove.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   265
+common.moveUp.icon=32x32/actions/go-up.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   266
+common.moveDown.icon=32x32/actions/go-down.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   267
+common.clearAll.icon=32x32/actions/edit-clear.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   268
 logo.icon.small=16x16/apps/jedit.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   269
 logo.icon.medium=32x32/apps/jedit.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   270
+navigate-backwards.icon=idea-icons/expui/general/chevronLeft.svg?scale=1.2
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   271
+navigate-forwards.icon=idea-icons/expui/general/chevronRight.svg?scale=1.2
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   272
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   273
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   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
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   276
 defer=false
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   277
 startup=true
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   278
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   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
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   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
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   283
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   284
 
82634
9f85679fd899 proper scalable icon, also for dark mode -- requires to update jedit component;
wenzelm
parents: 82625
diff changeset
   285
 #{{{ Tool bar
82624
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   286
@@ -39,68 +41,69 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   287
 	buffer-options combined-options - \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   288
 	plugin-manager - help
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   289
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   290
-new-file.icon=22x22/actions/document-new.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   291
-open-file.icon=22x22/actions/document-open.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   292
-save.icon=22x22/actions/document-save.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   293
-close-buffer.icon=22x22/actions/document-close.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   294
-global-close-buffer.icon=22x22/actions/document-close.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   295
-print.icon=22x22/actions/document-print.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   296
+new-file.icon=32x32/actions/document-new.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   297
+open-file.icon=32x32/actions/document-open.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   298
+save.icon=32x32/actions/document-save.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   299
+close-buffer.icon=32x32/actions/process-stop.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   300
+global-close-buffer.icon=32x32/actions/process-stop.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   301
+print.icon=32x32/actions/document-print.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   302
 page-setup.icon=22x22/actions/printer-setup.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   303
-undo.icon=22x22/actions/edit-undo.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   304
-redo.icon=22x22/actions/edit-redo.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   305
-cut.icon=22x22/actions/edit-cut.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   306
-copy.icon=22x22/actions/edit-copy.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   307
-paste.icon=22x22/actions/edit-paste.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   308
-find.icon=22x22/actions/edit-find.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   309
-find-next.icon=22x22/actions/edit-find-next.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   310
-new-view.icon=22x22/actions/window-new.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   311
+undo.icon=32x32/actions/edit-undo.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   312
+redo.icon=32x32/actions/edit-redo.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   313
+cut.icon=32x32/actions/edit-cut.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   314
+copy.icon=32x32/actions/edit-copy.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   315
+paste.icon=32x32/actions/edit-paste.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   316
+find.icon=32x32/actions/edit-find.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   317
+find-prev.icon=32x32/actions/go-previous.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   318
+find-next.icon=32x32/actions/go-next.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   319
+new-view.icon=32x32/actions/window-new.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   320
 unsplit.icon=22x22/actions/window-unsplit.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   321
 split-horizontal.icon=22x22/actions/window-split-horizontal.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   322
 split-vertical.icon=22x22/actions/window-split-vertical.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   323
-buffer-options.icon=22x22/actions/document-properties.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   324
-global-options.icon=22x22/categories/preferences-system.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   325
-combined-options.icon=22x22/categories/preferences-system.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   326
+buffer-options.icon=32x32/actions/document-properties.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   327
+global-options.icon=32x32/categories/preferences-system.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   328
+combined-options.icon=32x32/categories/preferences-system.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   329
 plugin-manager.icon=22x22/places/plugins.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   330
-help.icon=22x22/apps/help-browser.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   331
+help.icon=22x22/apps/help-browser.svg
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   332
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   333
 #{{{ Icon list for tool bar editor
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   334
 icons=22x22/actions/resize-horisontal.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   335
-	22x22/actions/go-down.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   336
-	22x22/actions/go-previous.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   337
-	22x22/actions/go-next.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   338
-	22x22/actions/go-home.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   339
-	22x22/actions/go-up.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   340
-	22x22/actions/go-first.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   341
-	22x22/actions/go-last.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   342
-	22x22/actions/go-parent.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   343
-	22x22/actions/document-close.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   344
-	22x22/actions/edit-undo.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   345
-	22x22/actions/edit-redo.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   346
-	22x22/actions/edit-cut.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   347
-	22x22/actions/edit-paste.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   348
-	22x22/actions/edit-delete.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   349
-	22x22/actions/edit-clear.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   350
-	22x22/actions/edit-find-next.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   351
-	22x22/actions/edit-find-in-folder.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   352
-	22x22/actions/edit-find.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   353
-	22x22/actions/edit-copy.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   354
+	22x22/actions/go-down.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   355
+	22x22/actions/go-previous.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   356
+	22x22/actions/go-next.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   357
+	32x32/actions/go-home.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   358
+	22x22/actions/go-up.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   359
+	22x22/actions/go-first.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   360
+	22x22/actions/go-last.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   361
+	22x22/actions/go-up.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   362
+	32x32/actions/process-stop.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   363
+	32x32/actions/edit-undo.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   364
+	32x32/actions/edit-redo.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   365
+	32x32/actions/edit-cut.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   366
+	32x32/actions/edit-paste.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   367
+	scalable/actions/edit-delete.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   368
+	22x22/actions/edit-clear.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   369
+	22x22/actions/go-next.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   370
+	32x32/actions/system-search.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   371
+	32x32/actions/edit-find.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   372
+	32x32/actions/edit-copy.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   373
 	22x22/actions/copy-to-buffer.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   374
-	22x22/actions/list-remove.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   375
-	22x22/actions/list-add.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   376
-	22x22/actions/folder-new.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   377
-	22x22/actions/window-new.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   378
-	22x22/actions/document-new.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   379
-	22x22/actions/document-open.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   380
+	32x32/actions/list-remove.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   381
+	32x32/actions/list-add.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   382
+	32x32/actions/folder-new.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   383
+	32x32/actions/document-new.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   384
+	32x32/actions/document-new.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   385
+	32x32/actions/document-open.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   386
 	22x22/actions/document-reload2.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   387
-	22x22/actions/document-properties.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   388
-	22x22/actions/document-save.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   389
-	22x22/actions/document-save-all.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   390
-	22x22/actions/document-save-as.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   391
+	32x32/actions/document-properties.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   392
+	32x32/actions/document-save.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   393
+	32x32/actions/document-save-all.svg?scale=0.5 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   394
+	32x32/actions/document-save-as.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   395
 	22x22/actions/printer-setup.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   396
-	22x22/actions/process-stop.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   397
-	22x22/actions/media-playback-pause.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   398
-	22x22/actions/media-playback-start.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   399
-	22x22/actions/view-refresh.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   400
+	22x22/actions/system-log-out.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   401
+	22x22/actions/media-playback-pause.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   402
+	22x22/actions/media-playback-start.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   403
+	22x22/actions/view-refresh.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   404
 	22x22/actions/application-run.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   405
 	22x22/actions/edit-find-multiple.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   406
 	22x22/actions/edit-find-single.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   407
@@ -109,18 +112,18 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   408
 	22x22/actions/window-unsplit.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   409
 	22x22/actions/zoom-in.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   410
 	22x22/actions/zoom-out.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   411
-	22x22/apps/utilities-terminal.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   412
-	22x22/apps/system-file-manager.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   413
-	22x22/apps/internet-web-browser.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   414
-	22x22/apps/help-browser.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   415
-	22x22/apps/system-installer.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   416
-	22x22/status/image-missing.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   417
-	22x22/status/folder-visiting.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   418
-	22x22/devices/drive-harddisk.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   419
-	22x22/devices/media-floppy.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   420
-	22x22/devices/printer.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   421
+	22x22/apps/utilities-terminal.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   422
+	32x32/apps/system-file-manager.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   423
+	32x32/apps/internet-web-browser.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   424
+	22x22/apps/help-browser.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   425
+	32x32/apps/system-installer.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   426
+	32x32/status/image-missing.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   427
+	32x32/status/folder-visiting.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   428
+	32x32/devices/drive-harddisk.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   429
+	22x22/devices/media-floppy.svg \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   430
+	32x32/devices/printer.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   431
 	22x22/places/plugins.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   432
-	22x22/categories/preferences-system.png \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   433
+	32x32/categories/preferences-system.svg?scale=0.7 \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   434
 	Blank24.gif
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   435
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   436
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   437
@@ -163,31 +166,31 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   438
 	 print \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   439
 	 - \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   440
 	 exit
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   441
-new-file.icon.small=16x16/actions/document-new.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   442
-new-file-in-mode.icon.small=16x16/actions/document-new.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   443
-open-file.icon.small=16x16/actions/document-open.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   444
-reload.icon.small=16x16/actions/view-refresh.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   445
-reload-all.icon.small=16x16/actions/view-refresh.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   446
-close-buffer.icon.small=16x16/actions/document-close.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   447
-closeall-bufferset.icon.small=16x16/actions/document-close.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   448
-closeall-except-active.icon.small=16x16/actions/document-close.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   449
-global-close-buffer.icon.small=16x16/actions/document-close.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   450
-close-all.icon.small=16x16/actions/document-close.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   451
-save.icon.small=16x16/actions/document-save.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   452
-save-as.icon.small=16x16/actions/document-save-as.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   453
-save-a-copy-as.icon.small=16x16/actions/document-save-as.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   454
-save-all.icon.small=16x16/actions/document-save-all.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   455
-print.icon.small=16x16/actions/document-print.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   456
-page-setup.icon.small=16x16/actions/document-properties.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   457
-exit.icon.small=16x16/actions/process-stop.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   458
-exit.icon.medium=22x22/actions/process-stop.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   459
+new-file.icon.small=32x32/actions/document-new.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   460
+new-file-in-mode.icon.small=32x32/actions/document-new.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   461
+open-file.icon.small=32x32/actions/document-open.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   462
+reload.icon.small=16x16/actions/view-refresh.svg
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   463
+reload-all.icon.small=16x16/actions/view-refresh.svg
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   464
+close-buffer.icon.small=32x32/actions/process-stop.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   465
+closeall-bufferset.icon.small=32x32/actions/process-stop.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   466
+closeall-except-active.icon.small=32x32/actions/process-stop.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   467
+global-close-buffer.icon.small=32x32/actions/process-stop.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   468
+close-all.icon.small=32x32/actions/process-stop.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   469
+save.icon.small=32x32/actions/document-save.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   470
+save-as.icon.small=32x32/actions/document-save-as.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   471
+save-a-copy-as.icon.small=32x32/actions/document-save-as.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   472
+save-all.icon.small=32x32/actions/document-save.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   473
+print.icon.small=32x32/actions/document-print.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   474
+page-setup.icon.small=32x32/actions/document-properties.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   475
+exit.icon.small=16x16/actions/system-log-out.svg
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   476
+exit.icon.medium=22x22/actions/system-log-out.svg
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   477
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   478
 #{{{ Recent Files menu
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   479
 recent-files.code=new RecentFilesProvider();
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   480
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   481
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   482
 reload-encoding.code=new ReloadWithEncodingProvider();
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   483
-reload-encoding.icon.small=16x16/actions/view-refresh.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   484
+reload-encoding.icon.small=16x16/actions/view-refresh.svg
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   485
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   486
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   487
 #{{{ Edit menu
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   488
@@ -211,12 +214,12 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   489
 	 %text \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   490
 	 %indent \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   491
 	 %source
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   492
-undo.icon.small=16x16/actions/edit-undo.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   493
-redo.icon.small=16x16/actions/edit-redo.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   494
-cut.icon.small=16x16/actions/edit-cut.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   495
-copy.icon.small=16x16/actions/edit-copy.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   496
-paste.icon.small=16x16/actions/edit-paste.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   497
-select-all.icon.small=16x16/actions/edit-select-all.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   498
+undo.icon.small=32x32/actions/edit-undo.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   499
+redo.icon.small=32x32/actions/edit-redo.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   500
+cut.icon.small=32x32/actions/edit-cut.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   501
+copy.icon.small=32x32/actions/edit-copy.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   502
+paste.icon.small=32x32/actions/edit-paste.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   503
+select-all.icon.small=16x16/actions/edit-select-all.svg
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   504
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   505
 #{{{ More Clipboard menu
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   506
 clipboard=cut-append \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   507
@@ -308,16 +311,18 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   508
 	   regexp \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   509
 	   - \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   510
 	   hypersearch-results
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   511
-find.icon.small=22x22/actions/edit-find.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   512
-find-next.icon.small=22x22/actions/edit-find-next.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   513
-search-in-directory.icon.small=22x22/actions/edit-find-in-folder.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   514
-replace-in-selection.icon.small=22x22/actions/edit-find-replace.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   515
-replace-and-find-next.icon.small=22x22/actions/edit-find-replace.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   516
-replace-all.icon.small=22x22/actions/edit-find-replace.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   517
-quick-search.icon.small=22x22/actions/edit-find.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   518
-hypersearch.icon.small=22x22/actions/edit-find-multiple.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   519
-quick-search-word.icon.small=22x22/actions/edit-find.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   520
-hypersearch-word.icon.small=22x22/actions/edit-find.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   521
+find.icon.small=32x32/actions/edit-find.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   522
+find-prev.icon.small=32x32/actions/go-previous.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   523
+find-next.icon.small=32x32/actions/go-next.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   524
+search-in-open-buffers.icon.small=32x32/actions/system-search.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   525
+search-in-directory.icon.small=32x32/actions/system-search.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   526
+replace-in-selection.icon.small=32x32/actions/edit-find-replace.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   527
+replace-and-find-next.icon.small=32x32/actions/edit-find-replace.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   528
+replace-all.icon.small=32x32/actions/edit-find-replace.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   529
+quick-search.icon.small=32x32/actions/edit-find.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   530
+hypersearch.icon.small=32x32/actions/edit-find.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   531
+quick-search-word.icon.small=32x32/actions/edit-find.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   532
+hypersearch-word.icon.small=32x32/actions/edit-find.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   533
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   534
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   535
 #{{{ Markers menu
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   536
@@ -336,12 +341,12 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   537
 	  view-markers \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   538
 	  -
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   539
 markers.code=new MarkersProvider();
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   540
-add-marker.icon.small=22x22/actions/bookmark-new.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   541
-add-marker-shortcut.icon.small=22x22/actions/bookmark-new.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   542
-remove-all-markers.icon.small=22x22/actions/edit-clear.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   543
-goto-marker.icon.small=22x22/actions/go-jump.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   544
-prev-marker.icon.small=22x22/actions/go-previous.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   545
-next-marker.icon.small=22x22/actions/go-next.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   546
+add-marker.icon.small=32x32/actions/bookmark-new.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   547
+add-marker-shortcut.icon.small=32x32/actions/bookmark-new.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   548
+remove-all-markers.icon.small=32x32/actions/edit-clear.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   549
+goto-marker.icon.small=32x32/actions/go-jump.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   550
+prev-marker.icon.small=32x32/actions/go-previous.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   551
+next-marker.icon.small=32x32/actions/go-next.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   552
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   553
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   554
 #{{{ Folding menu
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   555
@@ -388,9 +393,12 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   556
 	 - \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   557
 	 set-view-title \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   558
 	 toggle-full-screen
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   559
-new-view.icon.small=16x16/actions/window-new.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   560
-new-plain-view.icon.small=16x16/actions/window-new.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   561
-close-view.icon.small=16x16/actions/document-close.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   562
+new-view.icon.small=32x32/actions/window-new.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   563
+new-plain-view.icon.small=32x32/actions/window-new.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   564
+close-view.icon.small=32x32/actions/process-stop.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   565
+prev-buffer.icon.small=32x32/actions/go-previous.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   566
+next-buffer.icon.small=32x32/actions/go-next.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   567
+recent-buffer.icon.small=32x32/actions/go-up.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   568
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   569
 #{{{ Scrolling menu
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   570
 scrolling=scroll-to-current-line \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   571
@@ -454,9 +462,9 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   572
 	  - \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   573
 	  %quick-options
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   574
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   575
-buffer-options.icon.small=16x16/actions/document-properties.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   576
-global-options.icon.small=16x16/categories/preferences-system.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   577
-combined-options.icon.small=16x16/categories/preferences-system.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   578
+buffer-options.icon.small=32x32/actions/document-properties.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   579
+global-options.icon.small=32x32/categories/preferences-system.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   580
+combined-options.icon.small=32x32/categories/preferences-system.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   581
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   582
 #{{{ Recent Directories menu
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   583
 recent-directories.code=new RecentDirectoriesProvider();
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   584
@@ -518,9 +526,9 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   585
 	   rescan-macros \
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   586
 	   -
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   587
 macros.code=new MacrosProvider();
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   588
-new-macro.icon.small=16x16/actions/document-new.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   589
-record-macro.icon.small=16x16/actions/media-record.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   590
-stop-recording.icon.small=16x16/actions/media-playback-stop.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   591
+new-macro.icon.small=32x32/actions/document-new.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   592
+record-macro.icon.small=16x16/actions/media-record.svg
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   593
+stop-recording.icon.small=32x32/actions/media-playback-stop.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   594
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   595
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   596
 #{{{ Plugins menu
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   597
@@ -771,7 +779,7 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   598
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   599
 #{{{ HyperSearch results dialog
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   600
 hypersearch-results.clear.icon=22x22/actions/edit-clear.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   601
-hypersearch-results.stop.icon=22x22/actions/process-stop.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   602
+hypersearch-results.stop.icon=22x22/actions/system-log-out.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   603
 hypersearch-results.multi.multiple.icon=22x22/actions/edit-find-multiple.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   604
 hypersearch-results.multi.single.icon=22x22/actions/edit-find-single.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   605
 hypersearch-results.match.highlight.icon=22x22/actions/edit-find-highlight-match.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   606
@@ -784,8 +792,8 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   607
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   608
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   609
 #{{{ Help Viewer
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   610
-helpviewer.back.icon=22x22/actions/go-previous.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   611
-helpviewer.forward.icon=22x22/actions/go-next.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   612
+helpviewer.back.icon=32x32/actions/go-previous.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   613
+helpviewer.forward.icon=32x32/actions/go-next.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   614
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   615
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   616
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   617
@@ -809,9 +817,9 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   618
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   619
 #{{{ Abbreviations pane
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   620
 options.abbrevs.code=new AbbrevsOptionPane();
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   621
-options.abbrevs.add.icon=22x22/actions/list-add.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   622
-options.abbrevs.edit.icon=22x22/actions/document-properties.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   623
-options.abbrevs.remove.icon=22x22/actions/list-remove.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   624
+options.abbrevs.add.icon=32x32/actions/list-add.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   625
+options.abbrevs.edit.icon=32x32/actions/document-properties.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   626
+options.abbrevs.remove.icon=32x32/actions/list-remove.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   627
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   628
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   629
 #{{{ Appearance pane
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   630
@@ -840,11 +848,11 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   631
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   632
 #{{{ Context Menu pane
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   633
 options.context.code=new ContextOptionPane();
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   634
-options.context.add.icon=22x22/actions/list-add.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   635
-options.context.remove.icon=22x22/actions/list-remove.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   636
-options.context.moveUp.icon=22x22/actions/go-up.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   637
-options.context.moveDown.icon=22x22/actions/go-down.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   638
-options.context.reset.icon=22x22/actions/edit-clear.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   639
+options.context.add.icon=32x32/actions/list-add.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   640
+options.context.remove.icon=32x32/actions/list-remove.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   641
+options.context.moveUp.icon=32x32/actions/go-up.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   642
+options.context.moveDown.icon=32x32/actions/go-down.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   643
+options.context.reset.icon=32x32/actions/edit-clear.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   644
 options.context.includeOptionsLink=true
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   645
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   646
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   647
@@ -906,12 +914,12 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   648
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   649
 #{{{ Tool Bar pane
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   650
 options.toolbar.code=new ToolBarOptionPane();
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   651
-options.toolbar.add.icon=22x22/actions/list-add.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   652
-options.toolbar.remove.icon=22x22/actions/list-remove.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   653
-options.toolbar.moveUp.icon=22x22/actions/go-up.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   654
-options.toolbar.moveDown.icon=22x22/actions/go-down.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   655
-options.toolbar.reset.icon=22x22/actions/edit-clear.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   656
-options.toolbar.edit.icon=22x22/actions/document-properties.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   657
+options.toolbar.add.icon=32x32/actions/list-add.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   658
+options.toolbar.remove.icon=32x32/actions/list-remove.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   659
+options.toolbar.moveUp.icon=22x22/actions/go-up.svg
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   660
+options.toolbar.moveDown.icon=22x22/actions/go-down.svg
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   661
+options.toolbar.reset.icon=22x22/actions/edit-clear.svg
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   662
+options.toolbar.edit.icon=32x32/actions/document-properties.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   663
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   664
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   665
 #{{{ View pane
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   666
@@ -949,7 +957,8 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   667
 vfs.browser.default-filter=*[^~#]
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   668
 vfs.browser.filter-enabled=true
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   669
 vfs.browser.file.icon=16x16/mimetypes/text-x-generic.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   670
-vfs.browser.icon.small=16x16/apps/system-file-manager.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   671
+vfs.browser.icon=32x32/apps/system-file-manager.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   672
+vfs.browser.icon.small=32x32/apps/system-file-manager.svg?scale=0.5
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   673
 vfs.browser.open-file.icon=16x16/actions/edit-select-all.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   674
 vfs.browser.dir.icon=16x16/places/folder.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   675
 vfs.browser.open-dir.icon=16x16/status/folder-open.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   676
@@ -1007,13 +1016,13 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   677
 plugin-manager.mirror-url=http://plugins.jedit.org/export/mirror_list.php
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   678
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   679
 #{{{ Plugin management
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   680
-manage-plugins.restore.icon=22x22/actions/document-open.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   681
-manage-plugins.save.icon=22x22/actions/document-save.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   682
+manage-plugins.restore.icon=32x32/actions/document-open.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   683
+manage-plugins.save.icon=32x32/actions/document-save.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   684
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   685
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   686
 #{{{ Plugin installation
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   687
-install-plugins.choose-plugin-set.icon=22x22/actions/document-open.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   688
-install-plugins.clear-plugin-set.icon=22x22/actions/edit-clear.png
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   689
+install-plugins.choose-plugin-set.icon=32x32/actions/document-open.svg?scale=0.7
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   690
+install-plugins.clear-plugin-set.icon=22x22/actions/edit-clear.svg
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   691
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   692
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   693
 #}}}
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   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
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   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
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   697
@@ -78,12 +78,12 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   698
 		buttons.setBorder(new EmptyBorder(3,0,0,0));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   699
 		buttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   700
 		ActionListener actionHandler = new ActionHandler();
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   701
-		JButton add = new RolloverButton(GUIUtilities.loadIcon("Plus.png"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   702
+		JButton add = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("common.add.icon")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   703
 		add.setToolTipText(jEdit.getProperty("common.add"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   704
 		add.addActionListener(e -> colorsModel.add());
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   705
 		buttons.add(add);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   706
 		buttons.add(Box.createHorizontalStrut(6));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   707
-		remove = new RolloverButton(GUIUtilities.loadIcon("Minus.png"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   708
+		remove = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("common.remove.icon")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   709
 		remove.setToolTipText(jEdit.getProperty("common.remove"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   710
 		remove.addActionListener(e ->
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   711
 		{
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   712
@@ -93,12 +93,12 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   713
 		});
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   714
 		buttons.add(remove);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   715
 		buttons.add(Box.createHorizontalStrut(6));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   716
-		moveUp = new RolloverButton(GUIUtilities.loadIcon("ArrowU.png"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   717
+		moveUp = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("common.moveUp.icon")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   718
 		moveUp.setToolTipText(jEdit.getProperty("common.moveUp"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   719
 		moveUp.addActionListener(actionHandler);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   720
 		buttons.add(moveUp);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   721
 		buttons.add(Box.createHorizontalStrut(6));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   722
-		moveDown = new RolloverButton(GUIUtilities.loadIcon("ArrowD.png"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   723
+		moveDown = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("common.moveDown.icon")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   724
 		moveDown.setToolTipText(jEdit.getProperty("common.moveDown"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   725
 		moveDown.addActionListener(actionHandler);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   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
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   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
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   738
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/options/StatusBarOptionPane.java	2024-08-03 19:53:15.000000000 +0200
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   739
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/options/StatusBarOptionPane.java	2025-04-16 16:12:37.730958557 +0200
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   740
@@ -160,12 +160,12 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   741
 		buttons.setBorder(new EmptyBorder(3,0,0,0));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   742
 		buttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   743
 		buttons.add(Box.createHorizontalStrut(6));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   744
-		moveUp = new RolloverButton(GUIUtilities.loadIcon("ArrowU.png"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   745
+		moveUp = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("common.moveUp.icon")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   746
 		moveUp.setToolTipText(jEdit.getProperty("options.status.moveUp"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   747
 		moveUp.addActionListener(e -> moveUp());
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   748
 		buttons.add(moveUp);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   749
 		buttons.add(Box.createHorizontalStrut(6));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   750
-		moveDown = new RolloverButton(GUIUtilities.loadIcon("ArrowD.png"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   751
+		moveDown = new RolloverButton(GUIUtilities.loadIcon(jEdit.getProperty("common.moveDown.icon")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   752
 		moveDown.setToolTipText(jEdit.getProperty("options.status.moveDown"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   753
 		moveDown.addActionListener(e -> moveDown());
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   754
 		buttons.add(moveDown);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   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
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   756
--- jedit5.7.0/jEdit/org/gjt/sp/jedit/gui/RegisterViewer.java	2024-08-03 19:53:18.000000000 +0200
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   757
+++ jedit5.7.0-patched/jEdit/org/gjt/sp/jedit/gui/RegisterViewer.java	2025-04-16 21:45:44.861713409 +0200
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   758
@@ -54,7 +54,7 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   759
 		toolBar.add(Box.createGlue());
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   760
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   761
 		RolloverButton pasteRegister = new RolloverButton(
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   762
-			GUIUtilities.loadIcon("Paste.png"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   763
+			GUIUtilities.loadIcon(jEdit.getProperty("paste.icon")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   764
 		pasteRegister.setToolTipText(GenericGUIUtilities.prettifyMenuLabel(
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   765
 			jEdit.getProperty("paste-string-register.label")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   766
 		pasteRegister.addActionListener(e -> insertRegister());
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   767
@@ -62,7 +62,7 @@
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   768
 		toolBar.add(pasteRegister);
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   769
 
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   770
 		RolloverButton clearRegister = new RolloverButton(
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   771
-			GUIUtilities.loadIcon("Clear.png"));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   772
+			GUIUtilities.loadIcon(jEdit.getProperty("common.clearAll.icon")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   773
 		clearRegister.setToolTipText(GenericGUIUtilities.prettifyMenuLabel(
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   774
 			jEdit.getProperty("clear-string-register.label")));
210be56ecd1d simplified structure of patches;
wenzelm
parents: 82570
diff changeset
   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