Browse Source

Test: Move test classes into com.github.weisj.darklaf package.

pull/245/head
weisj 3 years ago
parent
commit
c51d02ae2f
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  1. 8
      core/build.gradle.kts
  2. 6
      core/src/main/java/com/intellij/util/ui/UIUtilities.java
  3. 82
      core/src/test/java/DemoLauncher.java
  4. 2
      core/src/test/java/com/github/weisj/darklaf/AbstractImageTest.java
  5. 3
      core/src/test/java/com/github/weisj/darklaf/CustomTitleBarTest.java
  6. 5
      core/src/test/java/com/github/weisj/darklaf/FontTest.java
  7. 3
      core/src/test/java/com/github/weisj/darklaf/MemoryTest.java
  8. 2
      core/src/test/java/com/github/weisj/darklaf/NativeLibraryTest.java
  9. 2
      core/src/test/java/com/github/weisj/darklaf/NonThreadSafeTest.java
  10. 3
      core/src/test/java/com/github/weisj/darklaf/TestUtils.java
  11. 2
      core/src/test/java/com/github/weisj/darklaf/TooltipTest.java
  12. 14
      core/src/test/java/com/github/weisj/darklaf/defaults/SafeIcon.java
  13. 2
      core/src/test/java/com/github/weisj/darklaf/defaults/SampleRenderer.java
  14. 8
      core/src/test/java/com/github/weisj/darklaf/defaults/UIManagerDefaults.java
  15. 6
      core/src/test/java/com/github/weisj/darklaf/documentation/CreateUITable.java
  16. 9
      core/src/test/java/com/github/weisj/darklaf/icon/AllIcons.java
  17. 22
      core/src/test/java/com/github/weisj/darklaf/icon/IconDemo.java
  18. 7
      core/src/test/java/com/github/weisj/darklaf/icon/IconEditorDemo.java
  19. 9
      core/src/test/java/com/github/weisj/darklaf/icon/RotatableIconDemo.java
  20. 2
      core/src/test/java/com/github/weisj/darklaf/misc/GenerateColors.java
  21. 5
      core/src/test/java/com/github/weisj/darklaf/theme/ColorPaletteDemo.java
  22. 2
      core/src/test/java/com/github/weisj/darklaf/theme/MapTableModel.java
  23. 6
      core/src/test/java/com/github/weisj/darklaf/theme/MyCustomTheme.java
  24. 2
      core/src/test/java/com/github/weisj/darklaf/theme/RecordingProperties.java
  25. 13
      core/src/test/java/com/github/weisj/darklaf/theme/ThemeEditor.java
  26. 2
      core/src/test/java/com/github/weisj/darklaf/ui/AnimationDemo.java
  27. 8
      core/src/test/java/com/github/weisj/darklaf/ui/ComponentDemo.java
  28. 2
      core/src/test/java/com/github/weisj/darklaf/ui/DarklafDemo.java
  29. 111
      core/src/test/java/com/github/weisj/darklaf/ui/DemoLauncher.java
  30. 2
      core/src/test/java/com/github/weisj/darklaf/ui/DemoPanel.java
  31. 2
      core/src/test/java/com/github/weisj/darklaf/ui/DemoResources.java
  32. 2
      core/src/test/java/com/github/weisj/darklaf/ui/ForegroundGenerationDemo.java
  33. 2
      core/src/test/java/com/github/weisj/darklaf/ui/PersistentThemeSettingsDemo.java
  34. 6
      core/src/test/java/com/github/weisj/darklaf/ui/PreferenceChangeDemo.java
  35. 2
      core/src/test/java/com/github/weisj/darklaf/ui/SettingsDemo.java
  36. 2
      core/src/test/java/com/github/weisj/darklaf/ui/SolidColorComponent.java
  37. 8
      core/src/test/java/com/github/weisj/darklaf/ui/button/AbstractButtonDemo.java
  38. 6
      core/src/test/java/com/github/weisj/darklaf/ui/button/ButtonDemo.java
  39. 8
      core/src/test/java/com/github/weisj/darklaf/ui/button/GridButtonsDemo.java
  40. 8
      core/src/test/java/com/github/weisj/darklaf/ui/button/GroupedButtonDemo.java
  41. 7
      core/src/test/java/com/github/weisj/darklaf/ui/button/HelpButtonDemo.java
  42. 7
      core/src/test/java/com/github/weisj/darklaf/ui/button/SplitButtonDemo.java
  43. 9
      core/src/test/java/com/github/weisj/darklaf/ui/button/ToggleButtonDemo.java
  44. 7
      core/src/test/java/com/github/weisj/darklaf/ui/checkBox/CheckBoxDemo.java
  45. 7
      core/src/test/java/com/github/weisj/darklaf/ui/checkBox/TriCheckBoxDemo.java
  46. 5
      core/src/test/java/com/github/weisj/darklaf/ui/colorChooser/ColorChooserDemo.java
  47. 7
      core/src/test/java/com/github/weisj/darklaf/ui/comboBox/ComboBoxDemo.java
  48. 5
      core/src/test/java/com/github/weisj/darklaf/ui/datepicker/LGoodDatePickerDemo.java
  49. 2
      core/src/test/java/com/github/weisj/darklaf/ui/dialog/CustomDialog.java
  50. 32
      core/src/test/java/com/github/weisj/darklaf/ui/dialog/DialogDemo.java
  51. 5
      core/src/test/java/com/github/weisj/darklaf/ui/fileChooser/FileChooserDemo.java
  52. 6
      core/src/test/java/com/github/weisj/darklaf/ui/font/FallbackFontDemo.java
  53. 6
      core/src/test/java/com/github/weisj/darklaf/ui/font/KerningDemo.java
  54. 2
      core/src/test/java/com/github/weisj/darklaf/ui/internalFrame/DemoFrame.java
  55. 7
      core/src/test/java/com/github/weisj/darklaf/ui/internalFrame/InternalFrameDemo.java
  56. 6
      core/src/test/java/com/github/weisj/darklaf/ui/label/LabelDemo.java
  57. 6
      core/src/test/java/com/github/weisj/darklaf/ui/label/LabelDemoBase.java
  58. 9
      core/src/test/java/com/github/weisj/darklaf/ui/label/LoadIndicatorDemo.java
  59. 8
      core/src/test/java/com/github/weisj/darklaf/ui/list/ListDemo.java
  60. 7
      core/src/test/java/com/github/weisj/darklaf/ui/list/ToggleButtonListDemo.java
  61. 5
      core/src/test/java/com/github/weisj/darklaf/ui/misc/FullscreenDemo.java
  62. 6
      core/src/test/java/com/github/weisj/darklaf/ui/popupMenu/PopupMenuDemo.java
  63. 6
      core/src/test/java/com/github/weisj/darklaf/ui/progressBar/ProgressBarDemo.java
  64. 7
      core/src/test/java/com/github/weisj/darklaf/ui/radioButton/RadioButtonDemo.java
  65. 9
      core/src/test/java/com/github/weisj/darklaf/ui/scrollPane/OverlayRSyntaxScrollPane.java
  66. 7
      core/src/test/java/com/github/weisj/darklaf/ui/scrollPane/OverlayScrollPaneDemo.java
  67. 9
      core/src/test/java/com/github/weisj/darklaf/ui/scrollPane/OverlayScrollPaneTextDemo.java
  68. 11
      core/src/test/java/com/github/weisj/darklaf/ui/scrollPane/ScrollPaneDemo.java
  69. 8
      core/src/test/java/com/github/weisj/darklaf/ui/slider/SliderDemo.java
  70. 8
      core/src/test/java/com/github/weisj/darklaf/ui/spinner/SpinnerDemo.java
  71. 7
      core/src/test/java/com/github/weisj/darklaf/ui/splitPane/SplitPaneDemo.java
  72. 9
      core/src/test/java/com/github/weisj/darklaf/ui/tabFrame/TabFrameDemo.java
  73. 7
      core/src/test/java/com/github/weisj/darklaf/ui/tabbedPane/AbstractTabbedPaneDemo.java
  74. 5
      core/src/test/java/com/github/weisj/darklaf/ui/tabbedPane/ClosableTabbedPaneDemo.java
  75. 4
      core/src/test/java/com/github/weisj/darklaf/ui/tabbedPane/TabbedPaneDemo.java
  76. 4
      core/src/test/java/com/github/weisj/darklaf/ui/tabbedPane/TabbedPaneKeyboardShortcut.java
  77. 4
      core/src/test/java/com/github/weisj/darklaf/ui/table/LargeTableDemo.java
  78. 8
      core/src/test/java/com/github/weisj/darklaf/ui/table/TableDemo.java
  79. 5
      core/src/test/java/com/github/weisj/darklaf/ui/text/ColoredTextDemo.java
  80. 7
      core/src/test/java/com/github/weisj/darklaf/ui/text/EditorPaneDemo.java
  81. 4
      core/src/test/java/com/github/weisj/darklaf/ui/text/FormattedTextFieldDemo.java
  82. 6
      core/src/test/java/com/github/weisj/darklaf/ui/text/HTMLPaneDemo.java
  83. 7
      core/src/test/java/com/github/weisj/darklaf/ui/text/PasswordFieldDemo.java
  84. 4
      core/src/test/java/com/github/weisj/darklaf/ui/text/TextAreaDemo.java
  85. 9
      core/src/test/java/com/github/weisj/darklaf/ui/text/TextComponentDemo.java
  86. 9
      core/src/test/java/com/github/weisj/darklaf/ui/text/TextFieldDemo.java
  87. 4
      core/src/test/java/com/github/weisj/darklaf/ui/text/TextPaneDemo.java
  88. 4
      core/src/test/java/com/github/weisj/darklaf/ui/toolBar/ToolBarDemo.java
  89. 9
      core/src/test/java/com/github/weisj/darklaf/ui/toolTip/ToolTipDemo.java
  90. 7
      core/src/test/java/com/github/weisj/darklaf/ui/tree/CheckBoxTreeDemo.java
  91. 8
      core/src/test/java/com/github/weisj/darklaf/ui/tree/FileTreeDemo.java
  92. 7
      core/src/test/java/com/github/weisj/darklaf/ui/tree/TreeDemo.java
  93. 7
      core/src/test/java/com/github/weisj/darklaf/ui/treetable/TreeTableDemo.java
  94. 4
      core/src/test/java/com/github/weisj/darklaf/util/ClassFinder.java
  95. 5
      core/src/test/java/com/github/weisj/darklaf/util/ResourceWalker.java
  96. 0
      core/src/test/resources/com/github/weisj/darklaf/icon/addEntry.svg
  97. 0
      core/src/test/resources/com/github/weisj/darklaf/icon/dark/aware_icon.svg
  98. 0
      core/src/test/resources/com/github/weisj/darklaf/icon/dark/aware_image_icon.png
  99. 0
      core/src/test/resources/com/github/weisj/darklaf/icon/image_icon.png
  100. 0
      core/src/test/resources/com/github/weisj/darklaf/icon/light/aware_icon.svg
  101. Some files were not shown because too many files have changed in this diff Show More

8
core/build.gradle.kts

@ -72,25 +72,25 @@ val makeDocumentation by tasks.registering(JavaExec::class) {
workingDir = File(project.rootDir, "build") workingDir = File(project.rootDir, "build")
workingDir.mkdirs() workingDir.mkdirs()
main = "documentation.CreateUITable" main = "com.github.weisj.darklaf.documentation.CreateUITable"
classpath(sourceSets.main.get().runtimeClasspath, sourceSets.test.get().runtimeClasspath) classpath(sourceSets.main.get().runtimeClasspath, sourceSets.test.get().runtimeClasspath)
} }
abstract class DemoTask : JavaExec() { abstract class DemoTask : JavaExec() {
init { init {
main = "DemoLauncher" main = "com.github.weisj.darklaf.ui.DemoLauncher"
} }
@Option( @Option(
option = "class", option = "class",
description = "Specifies the main class to run (e.g. UIDemo, ui.table.TableDemo, ui.button.ButtonDemo, ...)" description = "Specifies the main class to run (e.g. com.github.weisj.darklaf.ui.table.TableDemo, com.github.weisj.ui.button.ButtonDemo, ...)"
) )
override fun setMain(mainClassName: String?) = super.setMain(mainClassName) override fun setMain(mainClassName: String?) = super.setMain(mainClassName)
} }
val runDemo by tasks.registering(DemoTask::class) { val runDemo by tasks.registering(DemoTask::class) {
group = LifecycleBasePlugin.VERIFICATION_GROUP group = LifecycleBasePlugin.VERIFICATION_GROUP
description = "Launches demo (e.g. DemoLauncher, ui.table.TableDemo, ui.button.ButtonDemo, ...)" description = "Launches demo (e.g. com.github.weisj.darklaf.ui.table.TableDemo, com.github.weisj.darklaf.ui.button.ButtonDemo, ...)"
classpath(sourceSets.test.map { it.runtimeClasspath }) classpath(sourceSets.test.map { it.runtimeClasspath })

6
core/src/main/java/com/intellij/util/ui/UIUtilities.java

@ -201,7 +201,8 @@ public class UIUtilities {
} else // directional control } else // directional control
if (code >= 0x202a && code <= 0x202e) { // directional control if (code >= 0x202a && code <= 0x202e) { // directional control
return true; return true;
} else return code >= 0x206a && code <= 0x206f; } else
return code >= 0x206a && code <= 0x206f;
} }
public static UIUtilities.AATextInfo drawTextAntialiased(JComponent c) { public static UIUtilities.AATextInfo drawTextAntialiased(JComponent c) {
@ -892,7 +893,8 @@ public class UIUtilities {
if (!EventQueue.isDispatchThread()) { if (!EventQueue.isDispatchThread()) {
return true; return true;
} else { } else {
return e instanceof InputEvent && (!checkGesture || isAccessClipboardGesture((InputEvent) e)) && inputEvent_canAccessSystemClipboard((InputEvent) e); return e instanceof InputEvent && (!checkGesture || isAccessClipboardGesture((InputEvent) e))
&& inputEvent_canAccessSystemClipboard((InputEvent) e);
} }
} }

82
core/src/test/java/DemoLauncher.java

@ -1,82 +0,0 @@
/*
* MIT License
*
* Copyright (c) 2021 Jannis Weis
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
* substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
* NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
import java.util.*;
import java.util.stream.Collectors;
import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import util.ClassFinder;
public class DemoLauncher implements ComponentDemo {
public static void main(final String[] args) {
ComponentDemo.showDemo(new DemoLauncher());
}
List<DemoEntry> demoClasses;
public DemoLauncher() {
Class<ComponentDemo> demoType = ComponentDemo.class;
demoClasses = ClassFinder.getInstancesOfType(demoType, "ui", "icon", "defaults").stream()
.filter(obj -> !(obj instanceof DemoLauncher)).map(DemoEntry::new)
.sorted(Comparator.comparing(DemoEntry::toString)).collect(Collectors.toList());
}
@Override
public JComponent createComponent() {
JComboBox<DemoEntry> demos = new JComboBox<>(demoClasses.toArray(new DemoEntry[0]));
Box box = Box.createHorizontalBox();
box.add(demos);
JButton button = new JButton("Start");
button.addActionListener(
e -> Optional.ofNullable(((DemoEntry) demos.getSelectedItem())).ifPresent(DemoEntry::start));
box.add(Box.createHorizontalStrut(10));
box.add(button);
return new DemoPanel(box);
}
@Override
public String getTitle() {
return "Demo Launcher";
}
private static class DemoEntry {
private final ComponentDemo demo;
public DemoEntry(final ComponentDemo demo) {
this.demo = demo;
}
public void start() {
ComponentDemo.showDemo(demo, true);
}
@Override
public String toString() {
return demo.getClass().getSimpleName() + ".java";
}
}
}

2
core/src/test/java/test/AbstractImageTest.java → core/src/test/java/com/github/weisj/darklaf/AbstractImageTest.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package test; package com.github.weisj.darklaf;
import java.awt.*; import java.awt.*;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;

3
core/src/test/java/test/CustomTitleBarTest.java → core/src/test/java/com/github/weisj/darklaf/CustomTitleBarTest.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package test; package com.github.weisj.darklaf;
import java.awt.*; import java.awt.*;
import java.awt.event.WindowAdapter; import java.awt.event.WindowAdapter;
@ -34,7 +34,6 @@ import org.junit.jupiter.api.*;
import org.junit.jupiter.api.condition.EnabledOnOs; import org.junit.jupiter.api.condition.EnabledOnOs;
import org.junit.jupiter.api.condition.OS; import org.junit.jupiter.api.condition.OS;
import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.color.ColorUtil; import com.github.weisj.darklaf.color.ColorUtil;
import com.github.weisj.darklaf.theme.DarculaTheme; import com.github.weisj.darklaf.theme.DarculaTheme;
import com.github.weisj.darklaf.theme.IntelliJTheme; import com.github.weisj.darklaf.theme.IntelliJTheme;

5
core/src/test/java/test/FontTest.java → core/src/test/java/com/github/weisj/darklaf/FontTest.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package test; package com.github.weisj.darklaf;
import java.awt.*; import java.awt.*;
import java.awt.font.TextAttribute; import java.awt.font.TextAttribute;
@ -37,8 +37,7 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledOnOs; import org.junit.jupiter.api.condition.EnabledOnOs;
import org.junit.jupiter.api.condition.OS; import org.junit.jupiter.api.condition.OS;
import ui.DemoResources; import com.github.weisj.darklaf.ui.DemoResources;
import com.github.weisj.darklaf.util.SystemInfo; import com.github.weisj.darklaf.util.SystemInfo;
class FontTest extends AbstractImageTest { class FontTest extends AbstractImageTest {

3
core/src/test/java/test/MemoryTest.java → core/src/test/java/com/github/weisj/darklaf/MemoryTest.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package test; package com.github.weisj.darklaf;
import java.awt.FlowLayout; import java.awt.FlowLayout;
import java.awt.KeyboardFocusManager; import java.awt.KeyboardFocusManager;
@ -44,7 +44,6 @@ import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout; import org.junit.jupiter.api.Timeout;
import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.components.DynamicUI; import com.github.weisj.darklaf.components.DynamicUI;
import com.github.weisj.darklaf.listener.UIUpdater; import com.github.weisj.darklaf.listener.UIUpdater;

2
core/src/test/java/test/NativeLibraryTest.java → core/src/test/java/com/github/weisj/darklaf/NativeLibraryTest.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package test; package com.github.weisj.darklaf;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;

2
core/src/test/java/test/NonThreadSafeTest.java → core/src/test/java/com/github/weisj/darklaf/NonThreadSafeTest.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package test; package com.github.weisj.darklaf;
import org.junit.jupiter.api.parallel.ResourceLock; import org.junit.jupiter.api.parallel.ResourceLock;

3
core/src/test/java/test/TestUtils.java → core/src/test/java/com/github/weisj/darklaf/TestUtils.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package test; package com.github.weisj.darklaf;
import java.awt.Window; import java.awt.Window;
import java.awt.event.WindowEvent; import java.awt.event.WindowEvent;
@ -30,7 +30,6 @@ import javax.swing.*;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.theme.IntelliJTheme; import com.github.weisj.darklaf.theme.IntelliJTheme;
import com.github.weisj.darklaf.theme.Theme; import com.github.weisj.darklaf.theme.Theme;

2
core/src/test/java/test/TooltipTest.java → core/src/test/java/com/github/weisj/darklaf/TooltipTest.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package test; package com.github.weisj.darklaf;
import java.awt.*; import java.awt.*;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;

14
core/src/test/java/defaults/SafeIcon.java → core/src/test/java/com/github/weisj/darklaf/defaults/SafeIcon.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package defaults; package com.github.weisj.darklaf.defaults;
import java.awt.*; import java.awt.*;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
@ -35,18 +35,18 @@ import javax.swing.*;
* /jdesktop/swingx/renderer/UIPropertiesViewer.java?rev=1.2&view=markup * /jdesktop/swingx/renderer/UIPropertiesViewer.java?rev=1.2&view=markup
* *
* <p> * <p>
* Some ui-icons misbehave in that they unconditionally class-cast to the component type they are * Some com.github.weisj.ui-icons misbehave in that they unconditionally class-cast to the component
* mostly painted on. Consequently they blow up if we are trying to paint them anywhere else (f.i. * type they are mostly painted on. Consequently they blow up if we are trying to paint them
* in a renderer). * anywhere else (f.i. in a renderer).
* *
* <p> * <p>
* This Icon is an adaption of a cool trick by Darryl Burke found at * This Icon is an adaption of a cool trick by Darryl Burke found at
* http://tips4java.wordpress.com/2008/12/18/icon-table-cell-renderer * http://tips4java.wordpress.com/2008/12/18/icon-table-cell-renderer
* *
* <p> * <p>
* The base idea is to instantiate a component of the type expected by the icon, let it paint into * The base idea is to instantiate a component of the type expected by the com.github.weisj.icon,
* the graphics of a bufferedImage and create an ImageIcon from it. In subsequent calls the * let it paint into the graphics of a bufferedImage and create an ImageIcon from it. In subsequent
* ImageIcon is used. * calls the ImageIcon is used.
*/ */
final class SafeIcon implements Icon { final class SafeIcon implements Icon {
private final Icon wrappee; private final Icon wrappee;

2
core/src/test/java/defaults/SampleRenderer.java → core/src/test/java/com/github/weisj/darklaf/defaults/SampleRenderer.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package defaults; package com.github.weisj.darklaf.defaults;
import java.awt.*; import java.awt.*;

8
core/src/test/java/defaults/UIManagerDefaults.java → core/src/test/java/com/github/weisj/darklaf/defaults/UIManagerDefaults.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package defaults; package com.github.weisj.darklaf.defaults;
/* /*
* This programs uses the information found in the UIManager to create a table of key/value pairs * This programs uses the information found in the UIManager to create a table of key/value pairs
@ -37,10 +37,9 @@ import javax.swing.border.EmptyBorder;
import javax.swing.plaf.ColorUIResource; import javax.swing.plaf.ColorUIResource;
import javax.swing.table.DefaultTableModel; import javax.swing.table.DefaultTableModel;
import ui.ComponentDemo;
import com.github.weisj.darklaf.components.OverlayScrollPane; import com.github.weisj.darklaf.components.OverlayScrollPane;
import com.github.weisj.darklaf.icons.IconLoader; import com.github.weisj.darklaf.icons.IconLoader;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.table.renderer.DarkColorTableCellRendererEditor; import com.github.weisj.darklaf.ui.table.renderer.DarkColorTableCellRendererEditor;
public class UIManagerDefaults implements ItemListener, ComponentDemo { public class UIManagerDefaults implements ItemListener, ComponentDemo {
@ -317,7 +316,8 @@ public class UIManagerDefaults implements ItemListener, ComponentDemo {
} }
/* /*
* Some rows containing icons, may need to be sized taller to fully display the icon. * Some rows containing icons, may need to be sized taller to fully display the
* com.github.weisj.icon.
*/ */
private void updateRowHeights() { private void updateRowHeights() {
try { try {

6
core/src/test/java/documentation/CreateUITable.java → core/src/test/java/com/github/weisj/darklaf/documentation/CreateUITable.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package documentation; package com.github.weisj.darklaf.documentation;
import java.awt.*; import java.awt.*;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
@ -41,6 +41,7 @@ import com.github.weisj.darklaf.DarkLaf;
import com.github.weisj.darklaf.LafManager; import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.color.ColorUtil; import com.github.weisj.darklaf.color.ColorUtil;
import com.github.weisj.darklaf.components.border.DropShadowBorder; import com.github.weisj.darklaf.components.border.DropShadowBorder;
import com.github.weisj.darklaf.defaults.SampleRenderer;
import com.github.weisj.darklaf.icons.DarkSVGIcon; import com.github.weisj.darklaf.icons.DarkSVGIcon;
import com.github.weisj.darklaf.icons.EmptyIcon; import com.github.weisj.darklaf.icons.EmptyIcon;
import com.github.weisj.darklaf.icons.IconColorMapper; import com.github.weisj.darklaf.icons.IconColorMapper;
@ -57,14 +58,13 @@ import com.kitfox.svg.LinearGradient;
import com.kitfox.svg.SVGDiagram; import com.kitfox.svg.SVGDiagram;
import com.kitfox.svg.SVGElement; import com.kitfox.svg.SVGElement;
import com.kitfox.svg.app.beans.SVGIcon; import com.kitfox.svg.app.beans.SVGIcon;
import defaults.SampleRenderer;
public class CreateUITable { public class CreateUITable {
private static final int SAMPLE_WIDTH = 150; private static final int SAMPLE_WIDTH = 150;
private static final int SAMPLE_HEIGHT = 25; private static final int SAMPLE_HEIGHT = 25;
private static final String FOLDER = "documentation/"; private static final String FOLDER = "com/github/weisj/darklaf/documentation/";
private static final String IDENT = " "; private static final String IDENT = " ";
private static final String MISC_GROUP = "__Misc__"; private static final String MISC_GROUP = "__Misc__";

9
core/src/test/java/icon/AllIcons.java → core/src/test/java/com/github/weisj/darklaf/icon/AllIcons.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package icon; package com.github.weisj.darklaf.icon;
import java.awt.*; import java.awt.*;
import java.util.List; import java.util.List;
@ -29,16 +29,15 @@ import java.util.stream.Collectors;
import javax.swing.*; import javax.swing.*;
import javax.swing.event.ListDataListener; import javax.swing.event.ListDataListener;
import ui.ComponentDemo;
import util.ClassFinder;
import util.ResourceWalker;
import com.github.weisj.darklaf.LafManager; import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.components.OverlayScrollPane; import com.github.weisj.darklaf.components.OverlayScrollPane;
import com.github.weisj.darklaf.icons.IconLoader; import com.github.weisj.darklaf.icons.IconLoader;
import com.github.weisj.darklaf.icons.ThemedSVGIcon; import com.github.weisj.darklaf.icons.ThemedSVGIcon;
import com.github.weisj.darklaf.platform.decorations.DecorationsProvider; import com.github.weisj.darklaf.platform.decorations.DecorationsProvider;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.util.ClassFinder;
import com.github.weisj.darklaf.util.Pair; import com.github.weisj.darklaf.util.Pair;
import com.github.weisj.darklaf.util.ResourceWalker;
public class AllIcons implements ComponentDemo { public class AllIcons implements ComponentDemo {

22
core/src/test/java/icon/IconDemo.java → core/src/test/java/com/github/weisj/darklaf/icon/IconDemo.java

@ -19,15 +19,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package icon; package com.github.weisj.darklaf.icon;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.LafManager; import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.components.color.QuickColorChooser; import com.github.weisj.darklaf.components.color.QuickColorChooser;
import com.github.weisj.darklaf.icons.IconLoader; import com.github.weisj.darklaf.icons.IconLoader;
@ -35,6 +32,8 @@ import com.github.weisj.darklaf.icons.UIAwareIcon;
import com.github.weisj.darklaf.layout.LayoutHelper; import com.github.weisj.darklaf.layout.LayoutHelper;
import com.github.weisj.darklaf.theme.Theme; import com.github.weisj.darklaf.theme.Theme;
import com.github.weisj.darklaf.theme.event.ThemeInstalledListener; import com.github.weisj.darklaf.theme.event.ThemeInstalledListener;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.util.DarkUIUtil; import com.github.weisj.darklaf.util.DarkUIUtil;
public class IconDemo implements ComponentDemo { public class IconDemo implements ComponentDemo {
@ -61,12 +60,12 @@ public class IconDemo implements ComponentDemo {
Icon themedIcon = iconLoader.getIcon("themed_icon.svg", 16, 16, true); Icon themedIcon = iconLoader.getIcon("themed_icon.svg", 16, 16, true);
Icon imageIcon = iconLoader.getIcon("image_icon.png"); Icon imageIcon = iconLoader.getIcon("image_icon.png");
iconPanel.add(new JLabel("Aware image icon", uiAwareImageIcon, JLabel.LEFT)); iconPanel.add(new JLabel("Aware image com.github.weisj.icon", uiAwareImageIcon, JLabel.LEFT));
iconPanel.add(new JLabel("Aware image icon (dual)", uiAwareImageIconDual, JLabel.LEFT)); iconPanel.add(new JLabel("Aware image com.github.weisj.icon (dual)", uiAwareImageIconDual, JLabel.LEFT));
iconPanel.add(new JLabel("Aware svg icon", uiAwareIcon, JLabel.LEFT)); iconPanel.add(new JLabel("Aware svg com.github.weisj.icon", uiAwareIcon, JLabel.LEFT));
iconPanel.add(new JLabel("Aware svg icon (dual)", uiAwareIconDual, JLabel.LEFT)); iconPanel.add(new JLabel("Aware svg com.github.weisj.icon (dual)", uiAwareIconDual, JLabel.LEFT));
iconPanel.add(new JLabel("Themed icon", themedIcon, JLabel.LEFT)); iconPanel.add(new JLabel("Themed com.github.weisj.icon", themedIcon, JLabel.LEFT));
iconPanel.add(new JLabel("Image icon", imageIcon, JLabel.LEFT)); iconPanel.add(new JLabel("Image com.github.weisj.icon", imageIcon, JLabel.LEFT));
DemoPanel panel = new DemoPanel(iconPanel, new BorderLayout(), 0); DemoPanel panel = new DemoPanel(iconPanel, new BorderLayout(), 0);
JPanel controlPanel = panel.addControls(); JPanel controlPanel = panel.addControls();
@ -78,7 +77,8 @@ public class IconDemo implements ComponentDemo {
addActionListener(e -> updateAwareIconStyle()); addActionListener(e -> updateAwareIconStyle());
} }
}); });
controlPanel.add(new QuickColorChooser("Themed icon color", UIManager.getColor("TestIcon.color"), controlPanel
.add(new QuickColorChooser("Themed com.github.weisj.icon color", UIManager.getColor("TestIcon.color"),
this::updateThemedIconColor)); this::updateThemedIconColor));
return panel; return panel;

7
core/src/test/java/icon/IconEditorDemo.java → core/src/test/java/com/github/weisj/darklaf/icon/IconEditorDemo.java

@ -19,16 +19,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package icon; package com.github.weisj.darklaf.icon;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.components.iconeditor.IconEditor; import com.github.weisj.darklaf.components.iconeditor.IconEditor;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
public class IconEditorDemo implements ComponentDemo { public class IconEditorDemo implements ComponentDemo {

9
core/src/test/java/icon/RotatableIconDemo.java → core/src/test/java/com/github/weisj/darklaf/icon/RotatableIconDemo.java

@ -19,20 +19,19 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package icon; package com.github.weisj.darklaf.icon;
import java.awt.*; import java.awt.*;
import java.util.concurrent.atomic.AtomicReference; import java.util.concurrent.atomic.AtomicReference;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import ui.DemoResources;
import com.github.weisj.darklaf.components.OverlayScrollPane; import com.github.weisj.darklaf.components.OverlayScrollPane;
import com.github.weisj.darklaf.icons.DarkSVGIcon; import com.github.weisj.darklaf.icons.DarkSVGIcon;
import com.github.weisj.darklaf.icons.RotatableIcon; import com.github.weisj.darklaf.icons.RotatableIcon;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.DemoResources;
import com.github.weisj.darklaf.util.Alignment; import com.github.weisj.darklaf.util.Alignment;
import com.github.weisj.darklaf.util.Pair; import com.github.weisj.darklaf.util.Pair;

2
core/src/test/java/misc/GenerateColors.java → core/src/test/java/com/github/weisj/darklaf/misc/GenerateColors.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package misc; package com.github.weisj.darklaf.misc;
import java.awt.*; import java.awt.*;
import java.util.logging.Logger; import java.util.logging.Logger;

5
core/src/test/java/theme/ColorPaletteDemo.java → core/src/test/java/com/github/weisj/darklaf/theme/ColorPaletteDemo.java

@ -19,15 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package theme; package com.github.weisj.darklaf.theme;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import com.github.weisj.darklaf.graphics.ThemedColor; import com.github.weisj.darklaf.graphics.ThemedColor;
import com.github.weisj.darklaf.icons.SolidColorIcon; import com.github.weisj.darklaf.icons.SolidColorIcon;
import com.github.weisj.darklaf.layout.LayoutHelper; import com.github.weisj.darklaf.layout.LayoutHelper;
import com.github.weisj.darklaf.ui.ComponentDemo;
public class ColorPaletteDemo implements ComponentDemo { public class ColorPaletteDemo implements ComponentDemo {

2
core/src/test/java/theme/MapTableModel.java → core/src/test/java/com/github/weisj/darklaf/theme/MapTableModel.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package theme; package com.github.weisj.darklaf.theme;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;

6
core/src/test/java/theme/MyCustomTheme.java → core/src/test/java/com/github/weisj/darklaf/theme/MyCustomTheme.java

@ -19,13 +19,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package theme; package com.github.weisj.darklaf.theme;
import java.util.Properties; import java.util.Properties;
import javax.swing.*; import javax.swing.*;
import com.github.weisj.darklaf.theme.Theme;
import com.github.weisj.darklaf.theme.info.ColorToneRule; import com.github.weisj.darklaf.theme.info.ColorToneRule;
import com.github.weisj.darklaf.theme.info.PresetIconRule; import com.github.weisj.darklaf.theme.info.PresetIconRule;
import com.github.weisj.darklaf.util.SystemInfo; import com.github.weisj.darklaf.util.SystemInfo;
@ -63,7 +62,8 @@ public class MyCustomTheme extends Theme {
@Override @Override
protected PresetIconRule getPresetIconRule() { protected PresetIconRule getPresetIconRule() {
/* /*
* Use a custom icon theme. Colors are defined in my_custom_theme_icons.properties. * Use a custom com.github.weisj.icon com.github.weisj.theme. Colors are defined in
* my_custom_theme_icons.properties.
*/ */
return PresetIconRule.NONE; return PresetIconRule.NONE;
} }

2
core/src/test/java/theme/RecordingProperties.java → core/src/test/java/com/github/weisj/darklaf/theme/RecordingProperties.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package theme; package com.github.weisj.darklaf.theme;
import java.util.*; import java.util.*;

13
core/src/test/java/theme/ThemeEditor.java → core/src/test/java/com/github/weisj/darklaf/theme/ThemeEditor.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package theme; package com.github.weisj.darklaf.theme;
import java.awt.*; import java.awt.*;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
@ -32,8 +32,6 @@ import java.util.function.Supplier;
import javax.swing.*; import javax.swing.*;
import javax.swing.table.DefaultTableModel; import javax.swing.table.DefaultTableModel;
import ui.ComponentDemo;
import com.github.weisj.darklaf.DarkLaf; import com.github.weisj.darklaf.DarkLaf;
import com.github.weisj.darklaf.LafManager; import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.components.ComponentHelper; import com.github.weisj.darklaf.components.ComponentHelper;
@ -41,18 +39,18 @@ import com.github.weisj.darklaf.components.DefaultButton;
import com.github.weisj.darklaf.components.OverlayScrollPane; import com.github.weisj.darklaf.components.OverlayScrollPane;
import com.github.weisj.darklaf.components.border.DarkBorders; import com.github.weisj.darklaf.components.border.DarkBorders;
import com.github.weisj.darklaf.components.button.JSplitButton; import com.github.weisj.darklaf.components.button.JSplitButton;
import com.github.weisj.darklaf.defaults.UIManagerDefaults;
import com.github.weisj.darklaf.graphics.ThemedColor; import com.github.weisj.darklaf.graphics.ThemedColor;
import com.github.weisj.darklaf.icons.DerivableIcon; import com.github.weisj.darklaf.icons.DerivableIcon;
import com.github.weisj.darklaf.icons.IconLoader; import com.github.weisj.darklaf.icons.IconLoader;
import com.github.weisj.darklaf.icons.OverlayIcon; import com.github.weisj.darklaf.icons.OverlayIcon;
import com.github.weisj.darklaf.icons.TextIcon; import com.github.weisj.darklaf.icons.TextIcon;
import com.github.weisj.darklaf.layout.LayoutHelper; import com.github.weisj.darklaf.layout.LayoutHelper;
import com.github.weisj.darklaf.theme.Theme;
import com.github.weisj.darklaf.theme.ThemeDelegate;
import com.github.weisj.darklaf.theme.info.AccentColorRule; import com.github.weisj.darklaf.theme.info.AccentColorRule;
import com.github.weisj.darklaf.theme.info.ColorToneRule; import com.github.weisj.darklaf.theme.info.ColorToneRule;
import com.github.weisj.darklaf.theme.info.ContrastRule; import com.github.weisj.darklaf.theme.info.ContrastRule;
import com.github.weisj.darklaf.theme.info.FontSizeRule; import com.github.weisj.darklaf.theme.info.FontSizeRule;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.button.ButtonConstants; import com.github.weisj.darklaf.ui.button.ButtonConstants;
import com.github.weisj.darklaf.ui.table.TableConstants; import com.github.weisj.darklaf.ui.table.TableConstants;
import com.github.weisj.darklaf.ui.togglebutton.ToggleButtonConstants; import com.github.weisj.darklaf.ui.togglebutton.ToggleButtonConstants;
@ -60,7 +58,6 @@ import com.github.weisj.darklaf.uiresource.DarkColorUIResource;
import com.github.weisj.darklaf.util.Alignment; import com.github.weisj.darklaf.util.Alignment;
import com.github.weisj.darklaf.util.DarkUIUtil; import com.github.weisj.darklaf.util.DarkUIUtil;
import com.github.weisj.darklaf.util.FontUtil; import com.github.weisj.darklaf.util.FontUtil;
import defaults.UIManagerDefaults;
public class ThemeEditor extends JPanel { public class ThemeEditor extends JPanel {
@ -127,8 +124,8 @@ public class ThemeEditor extends JPanel {
JTabbedPane tabbedPane = new JTabbedPane(); JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT); tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
tabbedPane.addTab("Theme defaults", createTable(themeDefaults, false)); tabbedPane.addTab("Theme com.github.weisj.defaults", createTable(themeDefaults, false));
tabbedPane.addTab("Icon defaults", createTable(iconDefaults, false)); tabbedPane.addTab("Icon com.github.weisj.defaults", createTable(iconDefaults, false));
tabbedPane.addTab("UI customs", createTable(uiDefaults, true)); tabbedPane.addTab("UI customs", createTable(uiDefaults, true));
tabbedPane.addTab("Global customs", createTable(globalDefaults, true)); tabbedPane.addTab("Global customs", createTable(globalDefaults, true));
tabbedPane.addTab("Platform customs", createTable(platformDefaults, true)); tabbedPane.addTab("Platform customs", createTable(platformDefaults, true));

2
core/src/test/java/ui/AnimationDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/AnimationDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui; package com.github.weisj.darklaf.ui;
import java.awt.*; import java.awt.*;
import java.util.Arrays; import java.util.Arrays;

8
core/src/test/java/ui/ComponentDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/ComponentDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui; package com.github.weisj.darklaf.ui;
import java.awt.*; import java.awt.*;
import java.awt.event.WindowAdapter; import java.awt.event.WindowAdapter;
@ -27,6 +27,7 @@ import java.awt.event.WindowListener;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.Objects; import java.util.Objects;
import java.util.Optional; import java.util.Optional;
import java.util.concurrent.atomic.AtomicReference;
import java.util.logging.Level; import java.util.logging.Level;
import javax.swing.*; import javax.swing.*;
@ -63,11 +64,12 @@ public interface ComponentDemo {
showDemo(demo, false); showDemo(demo, false);
} }
static void showDemo(final ComponentDemo demo, final boolean asDialog) { static AtomicReference<Window> showDemo(final ComponentDemo demo, final boolean asDialog) {
LafManager.enabledPreferenceChangeReporting(false); LafManager.enabledPreferenceChangeReporting(false);
LafManager.addThemePreferenceChangeListener(LafManager::installTheme); LafManager.addThemePreferenceChangeListener(LafManager::installTheme);
LafManager.setDecorationsEnabled(true); LafManager.setDecorationsEnabled(true);
LafManager.setLogLevel(Level.FINE); LafManager.setLogLevel(Level.FINE);
AtomicReference<Window> windowRef = new AtomicReference<>();
SwingUtilities.invokeLater(() -> { SwingUtilities.invokeLater(() -> {
if (demo.useDarkLaf()) { if (demo.useDarkLaf()) {
if (!LafManager.isInstalled()) { if (!LafManager.isInstalled()) {
@ -114,7 +116,9 @@ public interface ComponentDemo {
window.setVisible(true); window.setVisible(true);
window.setLocationRelativeTo(null); window.setLocationRelativeTo(null);
windowRef.set(window);
}); });
return windowRef;
} }
default boolean useDarkLaf() { default boolean useDarkLaf() {

2
core/src/test/java/ui/DarklafDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/DarklafDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui; package com.github.weisj.darklaf.ui;
import javax.swing.*; import javax.swing.*;

111
core/src/test/java/com/github/weisj/darklaf/ui/DemoLauncher.java

@ -0,0 +1,111 @@
/*
* MIT License
*
* Copyright (c) 2021 Jannis Weis
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
* substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
* NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
package com.github.weisj.darklaf.ui;/*
* MIT License
*
* Copyright (c) 2021 Jannis Weis
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated com.github.weisj.documentation files (the
* "Software"), to deal in the Software without restriction, including without
* limitation the rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
import java.awt.Window;
import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors;
import javax.swing.*;
import com.github.weisj.darklaf.util.ClassFinder;
public class DemoLauncher implements ComponentDemo {
public static void main(final String[] args) {
ComponentDemo.showDemo(new DemoLauncher());
}
List<DemoEntry> demoClasses;
public List<DemoEntry> getDemoClasses() {
return demoClasses;
}
public DemoLauncher() {
Class<ComponentDemo> demoType = ComponentDemo.class;
demoClasses =
ClassFinder.getInstancesOfType(demoType, "ui", "icon", "com/github/weisj/darklaf/defaults").stream()
.filter(obj -> !(obj instanceof DemoLauncher)).map(DemoEntry::new)
.sorted(Comparator.comparing(DemoEntry::toString)).collect(Collectors.toList());
}
@Override
public JComponent createComponent() {
JComboBox<DemoEntry> demos = new JComboBox<>(demoClasses.toArray(new DemoEntry[0]));
Box box = Box.createHorizontalBox();
box.add(demos);
JButton button = new JButton("Start");
button.addActionListener(
e -> Optional.ofNullable(((DemoEntry) demos.getSelectedItem())).ifPresent(DemoEntry::start));
box.add(Box.createHorizontalStrut(10));
box.add(button);
return new DemoPanel(box);
}
@Override
public String getTitle() {
return "Demo Launcher";
}
public static class DemoEntry {
private final ComponentDemo demo;
public DemoEntry(final ComponentDemo demo) {
this.demo = demo;
}
public AtomicReference<Window> start() {
return ComponentDemo.showDemo(demo, true);
}
@Override
public String toString() {
return demo.getClass().getSimpleName() + ".java";
}
}
}

2
core/src/test/java/ui/DemoPanel.java → core/src/test/java/com/github/weisj/darklaf/ui/DemoPanel.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui; package com.github.weisj.darklaf.ui;
import java.awt.*; import java.awt.*;

2
core/src/test/java/ui/DemoResources.java → core/src/test/java/com/github/weisj/darklaf/ui/DemoResources.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui; package com.github.weisj.darklaf.ui;
import javax.swing.*; import javax.swing.*;

2
core/src/test/java/ui/ForegroundGenerationDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/ForegroundGenerationDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui; package com.github.weisj.darklaf.ui;
import java.awt.*; import java.awt.*;
import java.util.function.Consumer; import java.util.function.Consumer;

2
core/src/test/java/ui/PersistentThemeSettingsDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/PersistentThemeSettingsDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui; package com.github.weisj.darklaf.ui;
import java.io.*; import java.io.*;
import java.util.prefs.Preferences; import java.util.prefs.Preferences;

6
core/src/test/java/ui/PreferenceChangeDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/PreferenceChangeDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui; package com.github.weisj.darklaf.ui;
import java.awt.*; import java.awt.*;
import java.awt.event.WindowAdapter; import java.awt.event.WindowAdapter;
@ -72,10 +72,10 @@ public class PreferenceChangeDemo implements ComponentDemo {
setMargin(new Insets(5, 5, 5, 5)); setMargin(new Insets(5, 5, 5, 5));
setEditable(false); setEditable(false);
setText("Press start/stop to enable/disable preference monitoring.\n" + "Then do one of the following\n" setText("Press start/stop to enable/disable preference monitoring.\n" + "Then do one of the following\n"
+ " - switch between dark/light theme (Windows/macOS)\n" + " - switch between dark/light com.github.weisj.theme (Windows/macOS)\n"
+ " - toggle high contrast mode (Windows/macOS)\n" + " - change accent color (Windows/macOS)\n" + " - toggle high contrast mode (Windows/macOS)\n" + " - change accent color (Windows/macOS)\n"
+ " - change selection color (macOS)\n" + " - change font scaling (Windows)\n" + " - change selection color (macOS)\n" + " - change font scaling (Windows)\n"
+ "The theme should then adjust automatically (if monitoring is started).\n"); + "The com.github.weisj.theme should then adjust automatically (if monitoring is started).\n");
} }
}); });
return panel; return panel;

2
core/src/test/java/ui/SettingsDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/SettingsDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui; package com.github.weisj.darklaf.ui;
import java.awt.*; import java.awt.*;

2
core/src/test/java/ui/SolidColorComponent.java → core/src/test/java/com/github/weisj/darklaf/ui/SolidColorComponent.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui; package com.github.weisj.darklaf.ui;
import java.awt.*; import java.awt.*;

8
core/src/test/java/ui/button/AbstractButtonDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/button/AbstractButtonDemo.java

@ -19,17 +19,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.button; package com.github.weisj.darklaf.ui.button;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.components.color.QuickColorChooser; import com.github.weisj.darklaf.components.color.QuickColorChooser;
import com.github.weisj.darklaf.ui.button.DarkButtonUI; import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.util.AlignmentExt; import com.github.weisj.darklaf.util.AlignmentExt;
public abstract class AbstractButtonDemo<T extends AbstractButton> implements ComponentDemo { public abstract class AbstractButtonDemo<T extends AbstractButton> implements ComponentDemo {

6
core/src/test/java/ui/button/ButtonDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/button/ButtonDemo.java

@ -19,12 +19,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.button; package com.github.weisj.darklaf.ui.button;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoResources; import com.github.weisj.darklaf.ui.DemoResources;
public class ButtonDemo extends AbstractButtonDemo<JButton> { public class ButtonDemo extends AbstractButtonDemo<JButton> {

8
core/src/test/java/ui/button/GridButtonsDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/button/GridButtonsDemo.java

@ -19,17 +19,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.button; package com.github.weisj.darklaf.ui.button;
import java.awt.*; import java.awt.*;
import java.util.Optional; import java.util.Optional;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.button.ButtonConstants;
import com.github.weisj.darklaf.util.AlignmentExt; import com.github.weisj.darklaf.util.AlignmentExt;
public class GridButtonsDemo implements ComponentDemo { public class GridButtonsDemo implements ComponentDemo {

8
core/src/test/java/ui/button/GroupedButtonDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/button/GroupedButtonDemo.java

@ -19,14 +19,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.button; package com.github.weisj.darklaf.ui.button;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.button.DarkButtonUI;
import com.github.weisj.darklaf.util.AlignmentExt; import com.github.weisj.darklaf.util.AlignmentExt;
import com.github.weisj.darklaf.util.DarkUIUtil; import com.github.weisj.darklaf.util.DarkUIUtil;

7
core/src/test/java/ui/button/HelpButtonDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/button/HelpButtonDemo.java

@ -19,15 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.button; package com.github.weisj.darklaf.ui.button;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.components.help.HelpButton; import com.github.weisj.darklaf.components.help.HelpButton;
import com.github.weisj.darklaf.components.help.HelpMenuItem; import com.github.weisj.darklaf.components.help.HelpMenuItem;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
public class HelpButtonDemo implements ComponentDemo { public class HelpButtonDemo implements ComponentDemo {

7
core/src/test/java/ui/button/SplitButtonDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/button/SplitButtonDemo.java

@ -19,16 +19,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.button; package com.github.weisj.darklaf.ui.button;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoResources;
import com.github.weisj.darklaf.components.button.JSplitButton; import com.github.weisj.darklaf.components.button.JSplitButton;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoResources;
public class SplitButtonDemo extends ButtonDemo { public class SplitButtonDemo extends ButtonDemo {

9
core/src/test/java/ui/button/ToggleButtonDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/button/ToggleButtonDemo.java

@ -19,14 +19,13 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.button; package com.github.weisj.darklaf.ui.button;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import ui.DemoResources; import com.github.weisj.darklaf.ui.DemoResources;
import com.github.weisj.darklaf.ui.togglebutton.ToggleButtonConstants; import com.github.weisj.darklaf.ui.togglebutton.ToggleButtonConstants;
public class ToggleButtonDemo extends AbstractButtonDemo<JToggleButton> { public class ToggleButtonDemo extends AbstractButtonDemo<JToggleButton> {

7
core/src/test/java/ui/checkBox/CheckBoxDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/checkBox/CheckBoxDemo.java

@ -19,15 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.checkBox; package com.github.weisj.darklaf.ui.checkBox;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.togglebutton.DarkToggleButtonUI; import com.github.weisj.darklaf.ui.togglebutton.DarkToggleButtonUI;
public class CheckBoxDemo implements ComponentDemo { public class CheckBoxDemo implements ComponentDemo {

7
core/src/test/java/ui/checkBox/TriCheckBoxDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/checkBox/TriCheckBoxDemo.java

@ -19,17 +19,16 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.checkBox; package com.github.weisj.darklaf.ui.checkBox;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.components.tristate.TristateCheckBox; import com.github.weisj.darklaf.components.tristate.TristateCheckBox;
import com.github.weisj.darklaf.components.tristate.TristateCheckBoxMenuItem; import com.github.weisj.darklaf.components.tristate.TristateCheckBoxMenuItem;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.togglebutton.DarkToggleButtonUI; import com.github.weisj.darklaf.ui.togglebutton.DarkToggleButtonUI;
public class TriCheckBoxDemo implements ComponentDemo { public class TriCheckBoxDemo implements ComponentDemo {

5
core/src/test/java/ui/colorChooser/ColorChooserDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/colorChooser/ColorChooserDemo.java

@ -19,15 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.colorChooser; package com.github.weisj.darklaf.ui.colorChooser;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import com.github.weisj.darklaf.LafManager; import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.ui.ComponentDemo;
public final class ColorChooserDemo { public final class ColorChooserDemo {

7
core/src/test/java/ui/comboBox/ComboBoxDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/comboBox/ComboBoxDemo.java

@ -19,15 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.comboBox; package com.github.weisj.darklaf.ui.comboBox;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.combobox.ComboBoxConstants; import com.github.weisj.darklaf.ui.combobox.ComboBoxConstants;
import com.github.weisj.darklaf.util.PropertyKey; import com.github.weisj.darklaf.util.PropertyKey;

5
core/src/test/java/ui/datepicker/LGoodDatePickerDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/datepicker/LGoodDatePickerDemo.java

@ -19,13 +19,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.datepicker; package com.github.weisj.darklaf.ui.datepicker;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import com.github.lgooddatepicker.demo.BasicDemo; import com.github.lgooddatepicker.demo.BasicDemo;
import com.github.weisj.darklaf.ui.ComponentDemo;
public class LGoodDatePickerDemo implements ComponentDemo { public class LGoodDatePickerDemo implements ComponentDemo {

2
core/src/test/java/ui/dialog/CustomDialog.java → core/src/test/java/com/github/weisj/darklaf/ui/dialog/CustomDialog.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.dialog; package com.github.weisj.darklaf.ui.dialog;
import java.awt.*; import java.awt.*;
import java.awt.event.*; import java.awt.event.*;

32
core/src/test/java/ui/dialog/DialogDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/dialog/DialogDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.dialog; package com.github.weisj.darklaf.ui.dialog;
import java.awt.*; import java.awt.*;
import java.awt.event.WindowAdapter; import java.awt.event.WindowAdapter;
@ -29,9 +29,8 @@ import java.util.Objects;
import javax.swing.*; import javax.swing.*;
import javax.swing.border.Border; import javax.swing.border.Border;
import ui.ComponentDemo;
import com.github.weisj.darklaf.LafManager; import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.ui.ComponentDemo;
/* /*
* DialogDemo.java requires these files: CustomDialog.java images/middle.gif * DialogDemo.java requires these files: CustomDialog.java images/middle.gif
@ -250,7 +249,8 @@ public class DialogDemo extends JPanel {
/* /*
* Creates the panel shown by the 3rd tab. These dialogs are implemented using showMessageDialog, * Creates the panel shown by the 3rd tab. These dialogs are implemented using showMessageDialog,
* but you can specify the icon (using similar code) for any other kind of dialog, as well. * but you can specify the com.github.weisj.icon (using similar code) for any other kind of dialog,
* as well.
*/ */
private JPanel createIconDialogBox() { private JPanel createIconDialogBox() {
JButton showItButton = null; JButton showItButton = null;
@ -266,22 +266,22 @@ public class DialogDemo extends JPanel {
final String warningCommand = "warning"; final String warningCommand = "warning";
final String customCommand = "custom"; final String customCommand = "custom";
radioButtons[0] = new JRadioButton("Plain (no icon)"); radioButtons[0] = new JRadioButton("Plain (no com.github.weisj.icon)");
radioButtons[0].setActionCommand(plainCommand); radioButtons[0].setActionCommand(plainCommand);
radioButtons[1] = new JRadioButton("Information icon"); radioButtons[1] = new JRadioButton("Information com.github.weisj.icon");
radioButtons[1].setActionCommand(infoCommand); radioButtons[1].setActionCommand(infoCommand);
radioButtons[2] = new JRadioButton("Question icon"); radioButtons[2] = new JRadioButton("Question com.github.weisj.icon");
radioButtons[2].setActionCommand(questionCommand); radioButtons[2].setActionCommand(questionCommand);
radioButtons[3] = new JRadioButton("Error icon"); radioButtons[3] = new JRadioButton("Error com.github.weisj.icon");
radioButtons[3].setActionCommand(errorCommand); radioButtons[3].setActionCommand(errorCommand);
radioButtons[4] = new JRadioButton("Warning icon"); radioButtons[4] = new JRadioButton("Warning com.github.weisj.icon");
radioButtons[4].setActionCommand(warningCommand); radioButtons[4].setActionCommand(warningCommand);
radioButtons[5] = new JRadioButton("Custom icon"); radioButtons[5] = new JRadioButton("Custom com.github.weisj.icon");
radioButtons[5].setActionCommand(customCommand); radioButtons[5].setActionCommand(customCommand);
for (int i = 0; i < numButtons; i++) { for (int i = 0; i < numButtons; i++) {
@ -293,11 +293,11 @@ public class DialogDemo extends JPanel {
showItButton.addActionListener(e -> { showItButton.addActionListener(e -> {
String command = group.getSelection().getActionCommand(); String command = group.getSelection().getActionCommand();
// no icon // no com.github.weisj.icon
if (Objects.equals(command, plainCommand)) { if (Objects.equals(command, plainCommand)) {
JOptionPane.showMessageDialog(frame, "Eggs aren't supposed to be green.", "A plain message", JOptionPane.showMessageDialog(frame, "Eggs aren't supposed to be green.", "A plain message",
JOptionPane.PLAIN_MESSAGE); JOptionPane.PLAIN_MESSAGE);
// information icon // information com.github.weisj.icon
} else if (Objects.equals(command, infoCommand)) { } else if (Objects.equals(command, infoCommand)) {
JOptionPane.showMessageDialog(frame, "Eggs aren't supposed to be green.", "Inane informational dialog", JOptionPane.showMessageDialog(frame, "Eggs aren't supposed to be green.", "Inane informational dialog",
JOptionPane.INFORMATION_MESSAGE); JOptionPane.INFORMATION_MESSAGE);
@ -305,20 +305,20 @@ public class DialogDemo extends JPanel {
// XXX: It doesn't make sense to make a question with // XXX: It doesn't make sense to make a question with
// XXX: only one button. // XXX: only one button.
// XXX: See "Yes/No (but not in those words)" for a better solution. // XXX: See "Yes/No (but not in those words)" for a better solution.
// question icon // question com.github.weisj.icon
} else if (Objects.equals(command, questionCommand)) { } else if (Objects.equals(command, questionCommand)) {
JOptionPane.showMessageDialog(frame, JOptionPane.showMessageDialog(frame,
"You shouldn't use a message dialog " + "(like this)\n" + "for a question, OK?", "You shouldn't use a message dialog " + "(like this)\n" + "for a question, OK?",
"Inane question", JOptionPane.QUESTION_MESSAGE); "Inane question", JOptionPane.QUESTION_MESSAGE);
// error icon // error com.github.weisj.icon
} else if (Objects.equals(command, errorCommand)) { } else if (Objects.equals(command, errorCommand)) {
JOptionPane.showMessageDialog(frame, "Eggs aren't supposed to be green.", "Inane error", JOptionPane.showMessageDialog(frame, "Eggs aren't supposed to be green.", "Inane error",
JOptionPane.ERROR_MESSAGE); JOptionPane.ERROR_MESSAGE);
// warning icon // warning com.github.weisj.icon
} else if (Objects.equals(command, warningCommand)) { } else if (Objects.equals(command, warningCommand)) {
JOptionPane.showMessageDialog(frame, "Eggs aren't supposed to be green.", "Inane warning", JOptionPane.showMessageDialog(frame, "Eggs aren't supposed to be green.", "Inane warning",
JOptionPane.WARNING_MESSAGE); JOptionPane.WARNING_MESSAGE);
// custom icon // custom com.github.weisj.icon
} else if (Objects.equals(command, customCommand)) { } else if (Objects.equals(command, customCommand)) {
JOptionPane.showMessageDialog(frame, "Eggs aren't supposed to be green.", "Inane custom dialog", JOptionPane.showMessageDialog(frame, "Eggs aren't supposed to be green.", "Inane custom dialog",
JOptionPane.INFORMATION_MESSAGE, icon); JOptionPane.INFORMATION_MESSAGE, icon);

5
core/src/test/java/ui/fileChooser/FileChooserDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/fileChooser/FileChooserDemo.java

@ -19,15 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.fileChooser; package com.github.weisj.darklaf.ui.fileChooser;
import javax.swing.*; import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter; import javax.swing.filechooser.FileNameExtensionFilter;
import ui.ComponentDemo;
import com.github.weisj.darklaf.LafManager; import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.util.DarkUIUtil; import com.github.weisj.darklaf.util.DarkUIUtil;
public final class FileChooserDemo { public final class FileChooserDemo {

6
core/src/test/java/ui/font/FallbackFontDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/font/FallbackFontDemo.java

@ -19,12 +19,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.font; package com.github.weisj.darklaf.ui.font;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoResources; import com.github.weisj.darklaf.ui.DemoResources;
public class FallbackFontDemo implements ComponentDemo { public class FallbackFontDemo implements ComponentDemo {

6
core/src/test/java/ui/font/KerningDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/font/KerningDemo.java

@ -19,15 +19,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.font; package com.github.weisj.darklaf.ui.font;
import java.awt.font.TextAttribute; import java.awt.font.TextAttribute;
import java.util.Collections; import java.util.Collections;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoResources; import com.github.weisj.darklaf.ui.DemoResources;
public class KerningDemo implements ComponentDemo { public class KerningDemo implements ComponentDemo {

2
core/src/test/java/ui/internalFrame/DemoFrame.java → core/src/test/java/com/github/weisj/darklaf/ui/internalFrame/DemoFrame.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.internalFrame; package com.github.weisj.darklaf.ui.internalFrame;
import javax.swing.*; import javax.swing.*;

7
core/src/test/java/ui/internalFrame/InternalFrameDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/internalFrame/InternalFrameDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.internalFrame; package com.github.weisj.darklaf.ui.internalFrame;
import java.awt.*; import java.awt.*;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
@ -32,10 +32,9 @@ import javax.swing.*;
import javax.swing.border.CompoundBorder; import javax.swing.border.CompoundBorder;
import javax.swing.border.EmptyBorder; import javax.swing.border.EmptyBorder;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.components.border.DarkBorders; import com.github.weisj.darklaf.components.border.DarkBorders;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
public class InternalFrameDemo implements ActionListener, ComponentDemo { public class InternalFrameDemo implements ActionListener, ComponentDemo {

6
core/src/test/java/ui/label/LabelDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/label/LabelDemo.java

@ -19,12 +19,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.label; package com.github.weisj.darklaf.ui.label;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoResources; import com.github.weisj.darklaf.ui.DemoResources;
public class LabelDemo extends LabelDemoBase<JLabel> { public class LabelDemo extends LabelDemoBase<JLabel> {

6
core/src/test/java/ui/label/LabelDemoBase.java → core/src/test/java/com/github/weisj/darklaf/ui/label/LabelDemoBase.java

@ -19,14 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.label; package com.github.weisj.darklaf.ui.label;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
public abstract class LabelDemoBase<T extends JLabel> implements ComponentDemo { public abstract class LabelDemoBase<T extends JLabel> implements ComponentDemo {

9
core/src/test/java/ui/label/LoadIndicatorDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/label/LoadIndicatorDemo.java

@ -19,15 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.label; package com.github.weisj.darklaf.ui.label;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import ui.DemoResources;
import com.github.weisj.darklaf.components.loading.LoadingIndicator; import com.github.weisj.darklaf.components.loading.LoadingIndicator;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.DemoResources;
public class LoadIndicatorDemo extends LabelDemoBase<LoadingIndicator> { public class LoadIndicatorDemo extends LabelDemoBase<LoadingIndicator> {

8
core/src/test/java/ui/list/ListDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/list/ListDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.list; package com.github.weisj.darklaf.ui.list;
import java.awt.*; import java.awt.*;
import java.util.HashMap; import java.util.HashMap;
@ -27,10 +27,8 @@ import java.util.Map;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.list.DarkListUI;
import com.github.weisj.darklaf.util.PropertyUtil; import com.github.weisj.darklaf.util.PropertyUtil;
public final class ListDemo implements ComponentDemo { public final class ListDemo implements ComponentDemo {

7
core/src/test/java/ui/list/ToggleButtonListDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/list/ToggleButtonListDemo.java

@ -19,17 +19,16 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.list; package com.github.weisj.darklaf.ui.list;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.components.OverlayScrollPane; import com.github.weisj.darklaf.components.OverlayScrollPane;
import com.github.weisj.darklaf.components.togglebuttonlist.JToggleButtonList; import com.github.weisj.darklaf.components.togglebuttonlist.JToggleButtonList;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.togglebutton.DarkToggleButtonUI; import com.github.weisj.darklaf.ui.togglebutton.DarkToggleButtonUI;
import com.github.weisj.darklaf.ui.togglebutton.ToggleButtonConstants; import com.github.weisj.darklaf.ui.togglebutton.ToggleButtonConstants;

5
core/src/test/java/ui/misc/FullscreenDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/misc/FullscreenDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.misc; package com.github.weisj.darklaf.ui.misc;
import java.awt.*; import java.awt.*;
import java.awt.event.MouseAdapter; import java.awt.event.MouseAdapter;
@ -28,8 +28,7 @@ import java.awt.event.MouseListener;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.util.DarkUIUtil; import com.github.weisj.darklaf.util.DarkUIUtil;
public class FullscreenDemo implements ComponentDemo { public class FullscreenDemo implements ComponentDemo {

6
core/src/test/java/ui/popupMenu/PopupMenuDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/popupMenu/PopupMenuDemo.java

@ -19,14 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.popupMenu; package com.github.weisj.darklaf.ui.popupMenu;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoResources; import com.github.weisj.darklaf.ui.DemoResources;
public class PopupMenuDemo implements ComponentDemo { public class PopupMenuDemo implements ComponentDemo {

6
core/src/test/java/ui/progressBar/ProgressBarDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/progressBar/ProgressBarDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.progressBar; package com.github.weisj.darklaf.ui.progressBar;
import java.awt.*; import java.awt.*;
import java.util.HashMap; import java.util.HashMap;
@ -27,8 +27,8 @@ import java.util.Map;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
public class ProgressBarDemo implements ComponentDemo { public class ProgressBarDemo implements ComponentDemo {

7
core/src/test/java/ui/radioButton/RadioButtonDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/radioButton/RadioButtonDemo.java

@ -19,15 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.radioButton; package com.github.weisj.darklaf.ui.radioButton;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.togglebutton.DarkToggleButtonUI; import com.github.weisj.darklaf.ui.togglebutton.DarkToggleButtonUI;
public class RadioButtonDemo implements ComponentDemo { public class RadioButtonDemo implements ComponentDemo {

9
core/src/test/java/ui/scrollPane/OverlayRSyntaxScrollPane.java → core/src/test/java/com/github/weisj/darklaf/ui/scrollPane/OverlayRSyntaxScrollPane.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.scrollPane; package com.github.weisj.darklaf.ui.scrollPane;
import java.awt.*; import java.awt.*;
@ -28,11 +28,10 @@ import javax.swing.*;
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea;
import org.fife.ui.rtextarea.RTextScrollPane; import org.fife.ui.rtextarea.RTextScrollPane;
import ui.ComponentDemo;
import ui.DemoPanel;
import ui.DemoResources;
import com.github.weisj.darklaf.components.OverlayScrollPane; import com.github.weisj.darklaf.components.OverlayScrollPane;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.DemoResources;
import com.github.weisj.darklaf.util.StringUtil; import com.github.weisj.darklaf.util.StringUtil;
public class OverlayRSyntaxScrollPane implements ComponentDemo { public class OverlayRSyntaxScrollPane implements ComponentDemo {

7
core/src/test/java/ui/scrollPane/OverlayScrollPaneDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/scrollPane/OverlayScrollPaneDemo.java

@ -19,17 +19,16 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.scrollPane; package com.github.weisj.darklaf.ui.scrollPane;
import java.awt.*; import java.awt.*;
import java.util.Random; import java.util.Random;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.components.OverlayScrollPane; import com.github.weisj.darklaf.components.OverlayScrollPane;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
public class OverlayScrollPaneDemo implements ComponentDemo { public class OverlayScrollPaneDemo implements ComponentDemo {

9
core/src/test/java/ui/scrollPane/OverlayScrollPaneTextDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/scrollPane/OverlayScrollPaneTextDemo.java

@ -19,17 +19,16 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.scrollPane; package com.github.weisj.darklaf.ui.scrollPane;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import ui.DemoResources;
import com.github.weisj.darklaf.components.OverlayScrollPane; import com.github.weisj.darklaf.components.OverlayScrollPane;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.DemoResources;
import com.github.weisj.darklaf.util.StringUtil; import com.github.weisj.darklaf.util.StringUtil;
public class OverlayScrollPaneTextDemo implements ComponentDemo { public class OverlayScrollPaneTextDemo implements ComponentDemo {

11
core/src/test/java/ui/scrollPane/ScrollPaneDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/scrollPane/ScrollPaneDemo.java

@ -19,17 +19,16 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.scrollPane; package com.github.weisj.darklaf.ui.scrollPane;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import ui.DemoResources; import com.github.weisj.darklaf.ui.DemoResources;
import ui.SolidColorComponent; import com.github.weisj.darklaf.ui.SolidColorComponent;
import com.github.weisj.darklaf.util.StringUtil; import com.github.weisj.darklaf.util.StringUtil;
/** /**

8
core/src/test/java/ui/slider/SliderDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/slider/SliderDemo.java

@ -19,16 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.slider; package com.github.weisj.darklaf.ui.slider;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.slider.DarkSliderUI;
public class SliderDemo implements ComponentDemo { public class SliderDemo implements ComponentDemo {

8
core/src/test/java/ui/spinner/SpinnerDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/spinner/SpinnerDemo.java

@ -19,16 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.spinner; package com.github.weisj.darklaf.ui.spinner;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.spinner.SpinnerConstants;
public class SpinnerDemo implements ComponentDemo { public class SpinnerDemo implements ComponentDemo {

7
core/src/test/java/ui/splitPane/SplitPaneDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/splitPane/SplitPaneDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.splitPane; package com.github.weisj.darklaf.ui.splitPane;
import java.awt.*; import java.awt.*;
import java.util.HashMap; import java.util.HashMap;
@ -27,12 +27,11 @@ import java.util.Map;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.LafManager; import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.graphics.ThemedColor; import com.github.weisj.darklaf.graphics.ThemedColor;
import com.github.weisj.darklaf.theme.event.ThemeInstalledListener; import com.github.weisj.darklaf.theme.event.ThemeInstalledListener;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.splitpane.DividerStyle; import com.github.weisj.darklaf.ui.splitpane.DividerStyle;
import com.github.weisj.darklaf.ui.splitpane.SplitPaneConstants; import com.github.weisj.darklaf.ui.splitpane.SplitPaneConstants;

9
core/src/test/java/ui/tabFrame/TabFrameDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/tabFrame/TabFrameDemo.java

@ -19,21 +19,20 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.tabFrame; package com.github.weisj.darklaf.ui.tabFrame;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import javax.swing.text.BadLocationException; import javax.swing.text.BadLocationException;
import ui.ComponentDemo;
import ui.DemoResources;
import com.github.weisj.darklaf.components.tabframe.JTabFrame; import com.github.weisj.darklaf.components.tabframe.JTabFrame;
import com.github.weisj.darklaf.components.tabframe.TabbedPopup; import com.github.weisj.darklaf.components.tabframe.TabbedPopup;
import com.github.weisj.darklaf.components.text.NonWrappingTextPane; import com.github.weisj.darklaf.components.text.NonWrappingTextPane;
import com.github.weisj.darklaf.components.text.NumberedTextComponent; import com.github.weisj.darklaf.components.text.NumberedTextComponent;
import com.github.weisj.darklaf.components.text.NumberingPane; import com.github.weisj.darklaf.components.text.NumberingPane;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoResources;
import com.github.weisj.darklaf.util.Alignment; import com.github.weisj.darklaf.util.Alignment;
import com.github.weisj.darklaf.util.DarkUIUtil; import com.github.weisj.darklaf.util.DarkUIUtil;
import com.github.weisj.darklaf.util.StringUtil; import com.github.weisj.darklaf.util.StringUtil;
@ -82,7 +81,7 @@ public class TabFrameDemo implements ComponentDemo {
JPanel pcc = new JPanel(); JPanel pcc = new JPanel();
pcc.setOpaque(true); pcc.setOpaque(true);
pcc.add(new JLabel(o.toString() + "_" + i + " Popup")); pcc.add(new JLabel(o.toString() + "_" + i + " Popup"));
tabFrame.addTab(pcc, o.toString() + "_" + i, folderIcon, o); tabFrame.addTab(pcc, o + "_" + i, folderIcon, o);
} }
} }
} }

7
core/src/test/java/ui/tabbedPane/AbstractTabbedPaneDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/tabbedPane/AbstractTabbedPaneDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.tabbedPane; package com.github.weisj.darklaf.ui.tabbedPane;
import java.awt.*; import java.awt.*;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
@ -32,9 +32,8 @@ import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder; import javax.swing.border.LineBorder;
import javax.swing.plaf.UIResource; import javax.swing.plaf.UIResource;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.tabbedpane.DarkTabbedPaneUI; import com.github.weisj.darklaf.ui.tabbedpane.DarkTabbedPaneUI;
import com.github.weisj.darklaf.util.StringUtil; import com.github.weisj.darklaf.util.StringUtil;

5
core/src/test/java/ui/tabbedPane/ClosableTabbedPaneDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/tabbedPane/ClosableTabbedPaneDemo.java

@ -19,15 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.tabbedPane; package com.github.weisj.darklaf.ui.tabbedPane;
import java.util.logging.Logger; import java.util.logging.Logger;
import ui.ComponentDemo;
import com.github.weisj.darklaf.components.ClosableTabbedPane; import com.github.weisj.darklaf.components.ClosableTabbedPane;
import com.github.weisj.darklaf.components.TabEvent; import com.github.weisj.darklaf.components.TabEvent;
import com.github.weisj.darklaf.components.TabListener; import com.github.weisj.darklaf.components.TabListener;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.util.LogUtil; import com.github.weisj.darklaf.util.LogUtil;
public class ClosableTabbedPaneDemo extends AbstractTabbedPaneDemo<ClosableTabbedPane> implements TabListener { public class ClosableTabbedPaneDemo extends AbstractTabbedPaneDemo<ClosableTabbedPane> implements TabListener {

4
core/src/test/java/ui/tabbedPane/TabbedPaneDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/tabbedPane/TabbedPaneDemo.java

@ -19,11 +19,11 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.tabbedPane; package com.github.weisj.darklaf.ui.tabbedPane;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
public class TabbedPaneDemo extends AbstractTabbedPaneDemo<JTabbedPane> { public class TabbedPaneDemo extends AbstractTabbedPaneDemo<JTabbedPane> {

4
core/src/test/java/ui/tabbedPane/TabbedPaneKeyboardShortcut.java → core/src/test/java/com/github/weisj/darklaf/ui/tabbedPane/TabbedPaneKeyboardShortcut.java

@ -19,14 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.tabbedPane; package com.github.weisj.darklaf.ui.tabbedPane;
import java.awt.*; import java.awt.*;
import java.awt.event.KeyEvent; import java.awt.event.KeyEvent;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
public class TabbedPaneKeyboardShortcut implements ComponentDemo { public class TabbedPaneKeyboardShortcut implements ComponentDemo {

4
core/src/test/java/ui/table/LargeTableDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/table/LargeTableDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.table; package com.github.weisj.darklaf.ui.table;
import java.awt.*; import java.awt.*;
@ -27,7 +27,7 @@ import javax.swing.*;
import javax.swing.event.TableColumnModelEvent; import javax.swing.event.TableColumnModelEvent;
import javax.swing.table.AbstractTableModel; import javax.swing.table.AbstractTableModel;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
public class LargeTableDemo implements ComponentDemo { public class LargeTableDemo implements ComponentDemo {

8
core/src/test/java/ui/table/TableDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/table/TableDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.table; package com.github.weisj.darklaf.ui.table;
import java.awt.*; import java.awt.*;
import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicBoolean;
@ -30,11 +30,9 @@ import javax.swing.table.JTableHeader;
import javax.swing.table.TableCellEditor; import javax.swing.table.TableCellEditor;
import javax.swing.table.TableModel; import javax.swing.table.TableModel;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.components.OverlayScrollPane; import com.github.weisj.darklaf.components.OverlayScrollPane;
import com.github.weisj.darklaf.ui.table.DarkTableUI; import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.table.renderer.DarkTableCellEditor; import com.github.weisj.darklaf.ui.table.renderer.DarkTableCellEditor;
import com.github.weisj.darklaf.util.PropertyKey; import com.github.weisj.darklaf.util.PropertyKey;
import com.github.weisj.darklaf.util.PropertyUtil; import com.github.weisj.darklaf.util.PropertyUtil;

5
core/src/test/java/ui/text/ColoredTextDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/text/ColoredTextDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.text; package com.github.weisj.darklaf.ui.text;
import java.awt.*; import java.awt.*;
import java.util.Random; import java.util.Random;
@ -30,10 +30,9 @@ import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants; import javax.swing.text.StyleConstants;
import javax.swing.text.StyledDocument; import javax.swing.text.StyledDocument;
import ui.ComponentDemo;
import com.github.weisj.darklaf.color.DarkColorModelHSB; import com.github.weisj.darklaf.color.DarkColorModelHSB;
import com.github.weisj.darklaf.listener.InsertDocumentListener; import com.github.weisj.darklaf.listener.InsertDocumentListener;
import com.github.weisj.darklaf.ui.ComponentDemo;
public class ColoredTextDemo extends TextPaneDemo { public class ColoredTextDemo extends TextPaneDemo {

7
core/src/test/java/ui/text/EditorPaneDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/text/EditorPaneDemo.java

@ -19,13 +19,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.text; package com.github.weisj.darklaf.ui.text;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoResources; import com.github.weisj.darklaf.ui.DemoResources;
import com.github.weisj.darklaf.util.StringUtil; import com.github.weisj.darklaf.util.StringUtil;
public class EditorPaneDemo extends TextComponentDemo<JEditorPane> { public class EditorPaneDemo extends TextComponentDemo<JEditorPane> {

4
core/src/test/java/ui/text/FormattedTextFieldDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/text/FormattedTextFieldDemo.java

@ -19,13 +19,13 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.text; package com.github.weisj.darklaf.ui.text;
import java.text.NumberFormat; import java.text.NumberFormat;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
public class FormattedTextFieldDemo extends TextFieldDemo { public class FormattedTextFieldDemo extends TextFieldDemo {

6
core/src/test/java/ui/text/HTMLPaneDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/text/HTMLPaneDemo.java

@ -19,12 +19,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.text; package com.github.weisj.darklaf.ui.text;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoResources; import com.github.weisj.darklaf.ui.DemoResources;
public class HTMLPaneDemo extends TextPaneDemo { public class HTMLPaneDemo extends TextPaneDemo {

7
core/src/test/java/ui/text/PasswordFieldDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/text/PasswordFieldDemo.java

@ -19,15 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.text; package com.github.weisj.darklaf.ui.text;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.util.PropertyKey; import com.github.weisj.darklaf.util.PropertyKey;
public class PasswordFieldDemo implements ComponentDemo { public class PasswordFieldDemo implements ComponentDemo {

4
core/src/test/java/ui/text/TextAreaDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/text/TextAreaDemo.java

@ -19,13 +19,13 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.text; package com.github.weisj.darklaf.ui.text;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
public class TextAreaDemo extends TextComponentDemo<JTextArea> { public class TextAreaDemo extends TextComponentDemo<JTextArea> {

9
core/src/test/java/ui/text/TextComponentDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/text/TextComponentDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.text; package com.github.weisj.darklaf.ui.text;
import java.awt.*; import java.awt.*;
@ -27,11 +27,8 @@ import javax.swing.*;
import javax.swing.border.Border; import javax.swing.border.Border;
import javax.swing.text.JTextComponent; import javax.swing.text.JTextComponent;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.text.DarkTextBorder;
import com.github.weisj.darklaf.ui.text.DarkTextUI;
import com.github.weisj.darklaf.util.PropertyKey; import com.github.weisj.darklaf.util.PropertyKey;
import com.github.weisj.darklaf.util.PropertyUtil; import com.github.weisj.darklaf.util.PropertyUtil;
import com.github.weisj.darklaf.util.StringUtil; import com.github.weisj.darklaf.util.StringUtil;

9
core/src/test/java/ui/text/TextFieldDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/text/TextFieldDemo.java

@ -19,17 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.text; package com.github.weisj.darklaf.ui.text;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
import ui.DemoPanel; import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.text.DarkTextFieldUI;
import com.github.weisj.darklaf.ui.text.DarkTextUI;
import com.github.weisj.darklaf.util.PropertyKey; import com.github.weisj.darklaf.util.PropertyKey;
import com.github.weisj.darklaf.util.PropertyUtil; import com.github.weisj.darklaf.util.PropertyUtil;

4
core/src/test/java/ui/text/TextPaneDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/text/TextPaneDemo.java

@ -19,11 +19,11 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.text; package com.github.weisj.darklaf.ui.text;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
public class TextPaneDemo extends TextComponentDemo<JTextPane> { public class TextPaneDemo extends TextComponentDemo<JTextPane> {

4
core/src/test/java/ui/toolBar/ToolBarDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/toolBar/ToolBarDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.toolBar; package com.github.weisj.darklaf.ui.toolBar;
import java.awt.*; import java.awt.*;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
@ -27,7 +27,7 @@ import java.awt.event.ActionListener;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo; import com.github.weisj.darklaf.ui.ComponentDemo;
public class ToolBarDemo implements ActionListener, ComponentDemo { public class ToolBarDemo implements ActionListener, ComponentDemo {
private static final String PREVIOUS = "previous"; private static final String PREVIOUS = "previous";

9
core/src/test/java/ui/toolTip/ToolTipDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/toolTip/ToolTipDemo.java

@ -19,17 +19,16 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.toolTip; package com.github.weisj.darklaf.ui.toolTip;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import ui.DemoResources;
import com.github.weisj.darklaf.components.alignment.AlignmentStrategy; import com.github.weisj.darklaf.components.alignment.AlignmentStrategy;
import com.github.weisj.darklaf.components.tooltip.ToolTipContext; import com.github.weisj.darklaf.components.tooltip.ToolTipContext;
import com.github.weisj.darklaf.components.tooltip.ToolTipStyle; import com.github.weisj.darklaf.components.tooltip.ToolTipStyle;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.DemoResources;
import com.github.weisj.darklaf.ui.tooltip.DarkToolTipUI; import com.github.weisj.darklaf.ui.tooltip.DarkToolTipUI;
import com.github.weisj.darklaf.util.Alignment; import com.github.weisj.darklaf.util.Alignment;
import com.github.weisj.darklaf.util.StringUtil; import com.github.weisj.darklaf.util.StringUtil;

7
core/src/test/java/ui/tree/CheckBoxTreeDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/tree/CheckBoxTreeDemo.java

@ -19,18 +19,17 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.tree; package com.github.weisj.darklaf.ui.tree;
import java.awt.*; import java.awt.*;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.components.OverlayScrollPane; import com.github.weisj.darklaf.components.OverlayScrollPane;
import com.github.weisj.darklaf.components.tree.TristateTreeNode; import com.github.weisj.darklaf.components.tree.TristateTreeNode;
import com.github.weisj.darklaf.components.tristate.TristateState; import com.github.weisj.darklaf.components.tristate.TristateState;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.util.StringUtil; import com.github.weisj.darklaf.util.StringUtil;
public class CheckBoxTreeDemo implements ComponentDemo { public class CheckBoxTreeDemo implements ComponentDemo {

8
core/src/test/java/ui/tree/FileTreeDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/tree/FileTreeDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.tree; package com.github.weisj.darklaf.ui.tree;
import java.awt.*; import java.awt.*;
import java.io.File; import java.io.File;
@ -27,13 +27,11 @@ import java.io.File;
import javax.swing.*; import javax.swing.*;
import javax.swing.filechooser.FileSystemView; import javax.swing.filechooser.FileSystemView;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.components.OverlayScrollPane; import com.github.weisj.darklaf.components.OverlayScrollPane;
import com.github.weisj.darklaf.components.filetree.FileTree; import com.github.weisj.darklaf.components.filetree.FileTree;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.ui.button.ButtonConstants; import com.github.weisj.darklaf.ui.button.ButtonConstants;
import com.github.weisj.darklaf.ui.tree.DarkTreeUI;
public class FileTreeDemo implements ComponentDemo { public class FileTreeDemo implements ComponentDemo {

7
core/src/test/java/ui/tree/TreeDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/tree/TreeDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.tree; package com.github.weisj.darklaf.ui.tree;
import java.awt.*; import java.awt.*;
@ -28,12 +28,11 @@ import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer; import javax.swing.tree.DefaultTreeCellRenderer;
import net.miginfocom.swing.MigLayout; import net.miginfocom.swing.MigLayout;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.components.OverlayScrollPane; import com.github.weisj.darklaf.components.OverlayScrollPane;
import com.github.weisj.darklaf.components.SelectableTreeNode; import com.github.weisj.darklaf.components.SelectableTreeNode;
import com.github.weisj.darklaf.ui.tree.DarkTreeUI; import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
import com.github.weisj.darklaf.util.PropertyKey; import com.github.weisj.darklaf.util.PropertyKey;
import com.github.weisj.darklaf.util.PropertyUtil; import com.github.weisj.darklaf.util.PropertyUtil;

7
core/src/test/java/ui/treetable/TreeTableDemo.java → core/src/test/java/com/github/weisj/darklaf/ui/treetable/TreeTableDemo.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package ui.treetable; package com.github.weisj.darklaf.ui.treetable;
import java.awt.*; import java.awt.*;
import java.util.Date; import java.util.Date;
@ -27,11 +27,10 @@ import java.util.Random;
import javax.swing.*; import javax.swing.*;
import ui.ComponentDemo;
import ui.DemoPanel;
import com.github.weisj.darklaf.components.treetable.JTreeTable; import com.github.weisj.darklaf.components.treetable.JTreeTable;
import com.github.weisj.darklaf.components.treetable.model.*; import com.github.weisj.darklaf.components.treetable.model.*;
import com.github.weisj.darklaf.ui.ComponentDemo;
import com.github.weisj.darklaf.ui.DemoPanel;
public class TreeTableDemo implements ComponentDemo { public class TreeTableDemo implements ComponentDemo {

4
core/src/test/java/util/ClassFinder.java → core/src/test/java/com/github/weisj/darklaf/util/ClassFinder.java

@ -19,15 +19,13 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package util; package com.github.weisj.darklaf.util;
import java.lang.reflect.Modifier; import java.lang.reflect.Modifier;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import com.github.weisj.darklaf.util.Lambdas;
public final class ClassFinder { public final class ClassFinder {
public static <T> List<T> getInstancesOfType(final Class<T> type, final String... packages) { public static <T> List<T> getInstancesOfType(final Class<T> type, final String... packages) {

5
core/src/test/java/util/ResourceWalker.java → core/src/test/java/com/github/weisj/darklaf/util/ResourceWalker.java

@ -19,7 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
package util; package com.github.weisj.darklaf.util;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
@ -31,9 +31,6 @@ import java.nio.file.Path;
import java.util.*; import java.util.*;
import java.util.stream.Stream; import java.util.stream.Stream;
import com.github.weisj.darklaf.util.Lambdas;
import com.github.weisj.darklaf.util.StreamUtil;
public class ResourceWalker implements AutoCloseable { public class ResourceWalker implements AutoCloseable {
private final List<FileSystem> fileSystemList = new ArrayList<>(); private final List<FileSystem> fileSystemList = new ArrayList<>();

0
core/src/test/resources/icon/addEntry.svg → core/src/test/resources/com/github/weisj/darklaf/icon/addEntry.svg

Before

Width:  |  Height:  |  Size: 790 B

After

Width:  |  Height:  |  Size: 790 B

0
core/src/test/resources/icon/dark/aware_icon.svg → core/src/test/resources/com/github/weisj/darklaf/icon/dark/aware_icon.svg

Before

Width:  |  Height:  |  Size: 152 B

After

Width:  |  Height:  |  Size: 152 B

0
core/src/test/resources/icon/dark/aware_image_icon.png → core/src/test/resources/com/github/weisj/darklaf/icon/dark/aware_image_icon.png

Before

Width:  |  Height:  |  Size: 87 B

After

Width:  |  Height:  |  Size: 87 B

0
core/src/test/resources/icon/image_icon.png → core/src/test/resources/com/github/weisj/darklaf/icon/image_icon.png

Before

Width:  |  Height:  |  Size: 87 B

After

Width:  |  Height:  |  Size: 87 B

0
core/src/test/resources/icon/light/aware_icon.svg → core/src/test/resources/com/github/weisj/darklaf/icon/light/aware_icon.svg

Before

Width:  |  Height:  |  Size: 152 B

After

Width:  |  Height:  |  Size: 152 B

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save