From a3ae840d42949f47eb90006eda09e6503c97ebf1 Mon Sep 17 00:00:00 2001 From: Jannis Weis <31143295+weisJ@users.noreply.github.com> Date: Wed, 17 Jul 2024 22:34:56 +0200 Subject: [PATCH] Formatting fixes --- .../darklaf/compatibility/SwingUtil.java | 6 +-- .../util/ui/MenuItemLayoutHelper.java | 2 +- .../com/intellij/util/ui/UIUtilities.java | 2 +- core/build.gradle.kts | 2 +- .../com/github/weisj/darklaf/DarkLaf.java | 2 +- .../com/github/weisj/darklaf/LafManager.java | 2 +- .../github/weisj/darklaf/LafTransition.java | 2 +- .../weisj/darklaf/components/ArrowButton.java | 2 +- .../darklaf/components/ComponentHelper.java | 2 +- .../weisj/darklaf/components/JXPopupMenu.java | 4 +- .../components/border/BubbleBorder.java | 2 +- .../components/border/DropShadowBorder.java | 2 +- .../iconeditor/IconEditorPanel.java | 2 +- .../darklaf/components/iconeditor/Named.java | 2 +- .../components/iconeditor/NamedColor.java | 2 +- .../components/iconeditor/NamedInt.java | 2 +- .../popup/AttachedPopupComponent.java | 2 +- .../renderer/SimpleListCellRenderer.java | 2 +- .../components/tabframe/JTabFrame.java | 2 +- .../components/tabframe/PopupContainer.java | 2 +- .../tabframe/TabFrameContentPane.java | 2 +- .../text/TextFieldHistoryPopup.java | 2 +- .../components/tooltip/ToolTipContext.java | 2 +- .../components/tristate/TristateCheckBox.java | 2 +- .../darklaf/defaults/ResourceBundleCache.java | 2 +- .../darklaf/focus/FocusParentHelper.java | 2 +- .../weisj/darklaf/graphics/Animator.java | 2 +- .../weisj/darklaf/graphics/StringPainter.java | 2 +- .../listener/InsertDocumentListener.java | 2 +- .../darklaf/settings/RadioColorChooser.java | 2 +- .../weisj/darklaf/settings/ThemeSettings.java | 2 +- .../darklaf/settings/ThemeSettingsUI.java | 2 +- .../github/weisj/darklaf/task/CSSBuilder.java | 2 +- .../darklaf/task/FontDefaultsInitTask.java | 2 +- .../darklaf/task/ResourceBundleInitTask.java | 2 +- .../weisj/darklaf/ui/DarkPopupFactory.java | 3 +- .../darklaf/ui/DividedWidgetPainter.java | 4 +- .../cell/ComponentBasedTableCellRenderer.java | 2 +- .../ui/cell/DarkCellBorderUIResource.java | 2 +- .../ui/colorchooser/ColorTriangle.java | 2 +- .../ui/colorchooser/ColorValueFormatter.java | 2 +- .../colorchooser/DarkColorChooserPanel.java | 2 +- .../ui/filechooser/DarkFileChooserUI.java | 2 +- .../ui/list/DarkDefaultListCellRenderer.java | 2 +- .../ui/list/DarkListCellRendererDelegate.java | 2 +- .../darklaf/ui/list/DarkListUIBridge.java | 2 +- .../weisj/darklaf/ui/menu/DarkMenuBarUI.java | 2 +- .../darklaf/ui/menu/DarkMenuItemBorder.java | 2 +- .../ui/optionpane/DarkOptionPaneUI.java | 2 +- .../ui/popupmenu/DarkPopupMenuBorder.java | 2 +- .../darklaf/ui/popupmenu/DarkPopupMenuUI.java | 2 +- .../darklaf/ui/popupmenu/MouseGrabber.java | 2 +- .../ui/rootpane/PlainRootPaneBorder.java | 2 +- .../darklaf/ui/scrollpane/ScrollBarUtil.java | 2 +- .../darklaf/ui/spinner/DarkSpinnerBorder.java | 2 +- .../ui/tabbedpane/DarkTabbedPaneUIBridge.java | 5 +- .../DarkTabFrameComponentPopupMenu.java | 2 +- .../ui/tabframe/DarkTabFrameTabLabelUI.java | 2 +- .../darklaf/ui/tabframe/DarkTabFrameUI.java | 2 +- .../darklaf/ui/tabframe/TabFrameLayout.java | 2 +- .../table/renderer/DarkTableCellEditor.java | 2 +- .../darklaf/ui/taskpane/DarkTaskPaneUI.java | 2 +- .../weisj/darklaf/ui/text/DarkCaret.java | 2 +- .../ui/text/bridge/DarkTextAreaUIBridge.java | 2 +- .../ui/titledborder/DarkTitledBorder.java | 2 +- .../ui/togglebutton/ButtonGroupInfo.java | 2 +- .../DarkToggleButtonKeyHandler.java | 4 +- .../ToggleButtonFocusNavigationActions.java | 2 +- .../darklaf/ui/toolbar/DarkToolBarBorder.java | 4 +- .../darklaf/ui/toolbar/DarkToolBarUI.java | 2 +- .../darklaf/ui/tooltip/DarkToolTipUI.java | 6 +-- .../weisj/darklaf/ui/tooltip/ToolTipUtil.java | 2 +- .../darklaf/ui/tree/DarkTreeCellEditor.java | 2 +- .../weisj/darklaf/ui/tree/DarkTreeUI.java | 2 +- .../weisj/darklaf/ui/util/DarkUIUtil.java | 2 +- .../weisj/darklaf/ui/util/SwingXUtil.java | 4 +- .../DarkHighlightPainter.java | 2 +- .../pbjar/jxlayer/plaf/ext/MouseEventUI.java | 8 +-- .../pbjar/jxlayer/plaf/ext/TransformUI.java | 2 +- .../plaf/ext/transform/TransformLayout.java | 2 +- .../weisj/darklaf/nativelaf/mac.properties | 6 +-- .../darklaf/nativelaf/windows11.properties | 2 +- .../weisj/darklaf/ui/popupMenu.properties | 2 +- .../core/documentation/CreateUITable.java | 2 +- .../weisj/darklaf/core/test/FontTest.java | 2 +- .../weisj/darklaf/defaults/SafeIcon.java | 2 +- .../weisj/darklaf/icon/AllIconsDemo.java | 2 +- .../github/weisj/darklaf/icon/IconDemo.java | 2 +- .../github/weisj/darklaf/ui/DemoLauncher.java | 2 +- .../weisj/darklaf/ui/DemoResources.java | 2 +- .../darklaf/ui/PreferenceChangeDemo.java | 2 +- .../darklaf/ui/demo/BaseComponentDemo.java | 4 +- .../weisj/darklaf/ui/demo/DemoExecutor.java | 2 +- .../weisj/darklaf/ui/demo/SpacerSpec.java | 2 +- .../weisj/darklaf/ui/dialog/DialogDemo.java | 2 +- .../weisj/darklaf/ui/list/ListDemo.java | 2 +- .../darklaf/ui/popupMenu/PopupMenuDemo.java | 2 +- .../ui/progressBar/ProgressBarDemo.java | 2 +- .../scrollPane/OverlayRSyntaxScrollPane.java | 2 +- .../darklaf/ui/splitPane/SplitPaneDemo.java | 2 +- .../ui/tabbedPane/AbstractTabbedPaneDemo.java | 2 +- .../weisj/darklaf/ui/toolTip/ToolTipDemo.java | 2 +- gradle.properties | 2 +- macos/build.gradle.kts | 2 +- .../platform/macos/JNIThemeInfoMacOS.java | 2 +- .../macos/MacOSThemePreferenceProvider.java | 2 +- .../weisj/darklaf/platform/SystemInfo.java | 2 +- .../darklaf/platform/TitlePaneLayoutInfo.java | 2 +- .../properties/icons/AwareIconStyle.java | 2 +- .../darklaf/properties/icons/DarkSVGIcon.java | 2 +- .../darklaf/properties/icons/EmptyIcon.java | 2 +- .../darklaf/properties/icons/IconUtil.java | 2 +- .../darklaf/properties/icons/StateIcon.java | 2 +- .../darklaf/properties/icons/UIAwareIcon.java | 2 +- .../darklaf/theme/spec/AccentColorRule.java | 2 +- .../darklaf/theme/spec/FontPrototype.java | 2 +- .../darklaf/theme/spec/FontSizeRule.java | 2 +- .../theme/spec/PreferredThemeStyle.java | 2 +- .../weisj/darklaf/theme/ColorPalette.java | 2 +- .../com/github/weisj/darklaf/theme/Theme.java | 2 +- .../darklaf/theme/event/ThemeChangeEvent.java | 2 +- .../event/ThemePreferenceChangeEvent.java | 2 +- .../theme/info/DefaultThemeProvider.java | 2 +- .../github/weisj/darklaf/util/Alignment.java | 2 +- .../weisj/darklaf/util/AlignmentExt.java | 2 +- .../github/weisj/darklaf/util/FontUtil.java | 2 +- .../weisj/darklaf/util/PropertyUtil.java | 2 +- .../github/weisj/darklaf/util/StreamUtil.java | 2 +- .../github/weisj/darklaf/util/StringUtil.java | 2 +- .../darklaf/util/graphics/ImagePainter.java | 2 +- windows/build.gradle.kts | 51 ++++++++++--------- .../windows/WindowsDecorationsProvider.java | 2 +- .../platform/windows/ui/WindowsTitlePane.java | 4 +- 133 files changed, 178 insertions(+), 173 deletions(-) diff --git a/compatibility/src/main/java/com/github/weisj/darklaf/compatibility/SwingUtil.java b/compatibility/src/main/java/com/github/weisj/darklaf/compatibility/SwingUtil.java index fdc4a51c..3e7fc33b 100644 --- a/compatibility/src/main/java/com/github/weisj/darklaf/compatibility/SwingUtil.java +++ b/compatibility/src/main/java/com/github/weisj/darklaf/compatibility/SwingUtil.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, @@ -45,12 +45,12 @@ import javax.swing.plaf.synth.SynthContext; import javax.swing.plaf.synth.SynthGraphicsUtils; import javax.swing.plaf.synth.SynthStyle; -import jdk.swing.interop.SwingInterOpUtils; - import com.github.weisj.darklaf.platform.SystemInfo; import com.github.weisj.darklaf.util.LogUtil; import com.intellij.util.ui.UIUtilities; +import jdk.swing.interop.SwingInterOpUtils; + public final class SwingUtil { private static final Logger LOGGER = LogUtil.getLogger(SwingUtil.class); diff --git a/compatibility/src/main/java/com/intellij/util/ui/MenuItemLayoutHelper.java b/compatibility/src/main/java/com/intellij/util/ui/MenuItemLayoutHelper.java index 492f05fc..39aefe05 100644 --- a/compatibility/src/main/java/com/intellij/util/ui/MenuItemLayoutHelper.java +++ b/compatibility/src/main/java/com/intellij/util/ui/MenuItemLayoutHelper.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2021-2023 Jannis Weis + * Copyright (c) 2021-2024 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, diff --git a/compatibility/src/main/java/com/intellij/util/ui/UIUtilities.java b/compatibility/src/main/java/com/intellij/util/ui/UIUtilities.java index 805889e3..fbae2645 100644 --- a/compatibility/src/main/java/com/intellij/util/ui/UIUtilities.java +++ b/compatibility/src/main/java/com/intellij/util/ui/UIUtilities.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2021-2023 Jannis Weis + * Copyright (c) 2021-2024 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, diff --git a/core/build.gradle.kts b/core/build.gradle.kts index e6d7fd48..7605584a 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -86,7 +86,7 @@ abstract class DemoTask : JavaExec() { @Option( option = "class", - description = "Specifies the main class to run (e.g. com.github.weisj.darklaf.ui.table.TableDemo, com.github.weisj.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, ...)", ) fun setMainClass(mainClassName: String?) = mainClass.set(mainClassName) } diff --git a/core/src/main/java/com/github/weisj/darklaf/DarkLaf.java b/core/src/main/java/com/github/weisj/darklaf/DarkLaf.java index 5350859b..27ba40a9 100644 --- a/core/src/main/java/com/github/weisj/darklaf/DarkLaf.java +++ b/core/src/main/java/com/github/weisj/darklaf/DarkLaf.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/LafManager.java b/core/src/main/java/com/github/weisj/darklaf/LafManager.java index dd961e70..f9b703a3 100644 --- a/core/src/main/java/com/github/weisj/darklaf/LafManager.java +++ b/core/src/main/java/com/github/weisj/darklaf/LafManager.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/LafTransition.java b/core/src/main/java/com/github/weisj/darklaf/LafTransition.java index 26d425d3..30d826b1 100644 --- a/core/src/main/java/com/github/weisj/darklaf/LafTransition.java +++ b/core/src/main/java/com/github/weisj/darklaf/LafTransition.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2021-2023 Jannis Weis + * Copyright (c) 2021-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/ArrowButton.java b/core/src/main/java/com/github/weisj/darklaf/components/ArrowButton.java index 174b35b3..87f5c778 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/ArrowButton.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/ArrowButton.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/ComponentHelper.java b/core/src/main/java/com/github/weisj/darklaf/components/ComponentHelper.java index 95cf38e2..3e037740 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/ComponentHelper.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/ComponentHelper.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/JXPopupMenu.java b/core/src/main/java/com/github/weisj/darklaf/components/JXPopupMenu.java index ea9aebd5..43877781 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/JXPopupMenu.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/JXPopupMenu.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, @@ -51,7 +51,7 @@ public class JXPopupMenu extends JPopupMenu { Point p = new Point(x, y); if (invoker != null) { JLayer layer = DarkUIUtil.getParentOfType(JLayer.class, invoker); - if (layer != null && layer.getUI()instanceof TransformUI ui) { + if (layer != null && layer.getUI() instanceof TransformUI ui) { p = SwingUtilities.convertPoint(invoker, p, layer); AffineTransform transform = ui.getPreferredTransform(layer.getSize(), layer); transform.transform(p, p); diff --git a/core/src/main/java/com/github/weisj/darklaf/components/border/BubbleBorder.java b/core/src/main/java/com/github/weisj/darklaf/components/border/BubbleBorder.java index 13d4b930..1e08aeb8 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/border/BubbleBorder.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/border/BubbleBorder.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/border/DropShadowBorder.java b/core/src/main/java/com/github/weisj/darklaf/components/border/DropShadowBorder.java index 14def280..99d1e34a 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/border/DropShadowBorder.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/border/DropShadowBorder.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/IconEditorPanel.java b/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/IconEditorPanel.java index eb4edabf..77875025 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/IconEditorPanel.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/IconEditorPanel.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/Named.java b/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/Named.java index 24db69b6..c59e8b2d 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/Named.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/Named.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/NamedColor.java b/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/NamedColor.java index a1defa03..423bf065 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/NamedColor.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/NamedColor.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/NamedInt.java b/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/NamedInt.java index 448ee685..e6c262be 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/NamedInt.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/iconeditor/NamedInt.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/popup/AttachedPopupComponent.java b/core/src/main/java/com/github/weisj/darklaf/components/popup/AttachedPopupComponent.java index c7440894..b112ffd3 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/popup/AttachedPopupComponent.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/popup/AttachedPopupComponent.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/renderer/SimpleListCellRenderer.java b/core/src/main/java/com/github/weisj/darklaf/components/renderer/SimpleListCellRenderer.java index 8b471c40..3803eef6 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/renderer/SimpleListCellRenderer.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/renderer/SimpleListCellRenderer.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/tabframe/JTabFrame.java b/core/src/main/java/com/github/weisj/darklaf/components/tabframe/JTabFrame.java index 15704925..b4d5be5f 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/tabframe/JTabFrame.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/tabframe/JTabFrame.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/tabframe/PopupContainer.java b/core/src/main/java/com/github/weisj/darklaf/components/tabframe/PopupContainer.java index 49b9b292..b9802584 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/tabframe/PopupContainer.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/tabframe/PopupContainer.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/tabframe/TabFrameContentPane.java b/core/src/main/java/com/github/weisj/darklaf/components/tabframe/TabFrameContentPane.java index b7f9b0bd..d8a7d25b 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/tabframe/TabFrameContentPane.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/tabframe/TabFrameContentPane.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/text/TextFieldHistoryPopup.java b/core/src/main/java/com/github/weisj/darklaf/components/text/TextFieldHistoryPopup.java index adf2c253..f105310e 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/text/TextFieldHistoryPopup.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/text/TextFieldHistoryPopup.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/tooltip/ToolTipContext.java b/core/src/main/java/com/github/weisj/darklaf/components/tooltip/ToolTipContext.java index 6be8536c..7d0537c6 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/tooltip/ToolTipContext.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/tooltip/ToolTipContext.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/components/tristate/TristateCheckBox.java b/core/src/main/java/com/github/weisj/darklaf/components/tristate/TristateCheckBox.java index 737327ec..b578ea85 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/tristate/TristateCheckBox.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/tristate/TristateCheckBox.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/defaults/ResourceBundleCache.java b/core/src/main/java/com/github/weisj/darklaf/defaults/ResourceBundleCache.java index e9a0bee2..b76631bc 100644 --- a/core/src/main/java/com/github/weisj/darklaf/defaults/ResourceBundleCache.java +++ b/core/src/main/java/com/github/weisj/darklaf/defaults/ResourceBundleCache.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2023 Jannis Weis + * Copyright (c) 2023-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/focus/FocusParentHelper.java b/core/src/main/java/com/github/weisj/darklaf/focus/FocusParentHelper.java index 27f4112d..debe6453 100644 --- a/core/src/main/java/com/github/weisj/darklaf/focus/FocusParentHelper.java +++ b/core/src/main/java/com/github/weisj/darklaf/focus/FocusParentHelper.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/graphics/Animator.java b/core/src/main/java/com/github/weisj/darklaf/graphics/Animator.java index 3a50526b..6736c71a 100644 --- a/core/src/main/java/com/github/weisj/darklaf/graphics/Animator.java +++ b/core/src/main/java/com/github/weisj/darklaf/graphics/Animator.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/graphics/StringPainter.java b/core/src/main/java/com/github/weisj/darklaf/graphics/StringPainter.java index 075f2417..a3b5b949 100644 --- a/core/src/main/java/com/github/weisj/darklaf/graphics/StringPainter.java +++ b/core/src/main/java/com/github/weisj/darklaf/graphics/StringPainter.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/listener/InsertDocumentListener.java b/core/src/main/java/com/github/weisj/darklaf/listener/InsertDocumentListener.java index c8a8ecb7..dfd46909 100644 --- a/core/src/main/java/com/github/weisj/darklaf/listener/InsertDocumentListener.java +++ b/core/src/main/java/com/github/weisj/darklaf/listener/InsertDocumentListener.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/settings/RadioColorChooser.java b/core/src/main/java/com/github/weisj/darklaf/settings/RadioColorChooser.java index 81768eca..1db67eff 100644 --- a/core/src/main/java/com/github/weisj/darklaf/settings/RadioColorChooser.java +++ b/core/src/main/java/com/github/weisj/darklaf/settings/RadioColorChooser.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2021-2023 Jannis Weis + * Copyright (c) 2021-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java b/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java index 2d847a89..8a17e39b 100644 --- a/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java +++ b/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettingsUI.java b/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettingsUI.java index 5321737c..869768fa 100644 --- a/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettingsUI.java +++ b/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettingsUI.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/task/CSSBuilder.java b/core/src/main/java/com/github/weisj/darklaf/task/CSSBuilder.java index 796a2dbe..bbd7b8eb 100644 --- a/core/src/main/java/com/github/weisj/darklaf/task/CSSBuilder.java +++ b/core/src/main/java/com/github/weisj/darklaf/task/CSSBuilder.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/task/FontDefaultsInitTask.java b/core/src/main/java/com/github/weisj/darklaf/task/FontDefaultsInitTask.java index bafc20eb..a0184de9 100644 --- a/core/src/main/java/com/github/weisj/darklaf/task/FontDefaultsInitTask.java +++ b/core/src/main/java/com/github/weisj/darklaf/task/FontDefaultsInitTask.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/task/ResourceBundleInitTask.java b/core/src/main/java/com/github/weisj/darklaf/task/ResourceBundleInitTask.java index 2af975b2..d449614c 100644 --- a/core/src/main/java/com/github/weisj/darklaf/task/ResourceBundleInitTask.java +++ b/core/src/main/java/com/github/weisj/darklaf/task/ResourceBundleInitTask.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/DarkPopupFactory.java b/core/src/main/java/com/github/weisj/darklaf/ui/DarkPopupFactory.java index 38bee727..e5e0d1d3 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/DarkPopupFactory.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/DarkPopupFactory.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, @@ -28,7 +28,6 @@ import java.util.logging.Logger; import javax.swing.*; import com.github.weisj.darklaf.nativelaf.DecorationsHandler; -import com.github.weisj.darklaf.platform.SystemInfo; import com.github.weisj.darklaf.properties.uiresource.DarkColorUIResource; import com.github.weisj.darklaf.ui.rootpane.DarkRootPaneUI; import com.github.weisj.darklaf.ui.util.DarkUIUtil; diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/DividedWidgetPainter.java b/core/src/main/java/com/github/weisj/darklaf/ui/DividedWidgetPainter.java index 4374cbc5..ee885d34 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/DividedWidgetPainter.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/DividedWidgetPainter.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, @@ -99,7 +99,7 @@ public final class DividedWidgetPainter { return WidgetBorderType.Table; } else if (isTreeEditor) { return WidgetBorderType.Rect; - } else if (c.getParent()instanceof JPopupMenu parent) { + } else if (c.getParent() instanceof JPopupMenu parent) { int compCount = parent.getComponentCount(); if (compCount == 1) return WidgetBorderType.None; diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/cell/ComponentBasedTableCellRenderer.java b/core/src/main/java/com/github/weisj/darklaf/ui/cell/ComponentBasedTableCellRenderer.java index 902d7a27..10b3be11 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/cell/ComponentBasedTableCellRenderer.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/cell/ComponentBasedTableCellRenderer.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/cell/DarkCellBorderUIResource.java b/core/src/main/java/com/github/weisj/darklaf/ui/cell/DarkCellBorderUIResource.java index 70251565..bc6a7b3d 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/cell/DarkCellBorderUIResource.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/cell/DarkCellBorderUIResource.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorTriangle.java b/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorTriangle.java index 341b2423..4a0cd628 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorTriangle.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorTriangle.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorValueFormatter.java b/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorValueFormatter.java index d80ecb9a..2e753fda 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorValueFormatter.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/ColorValueFormatter.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/DarkColorChooserPanel.java b/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/DarkColorChooserPanel.java index 5c667f64..ae110bd2 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/DarkColorChooserPanel.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/colorchooser/DarkColorChooserPanel.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/filechooser/DarkFileChooserUI.java b/core/src/main/java/com/github/weisj/darklaf/ui/filechooser/DarkFileChooserUI.java index dae73930..23110c19 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/filechooser/DarkFileChooserUI.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/filechooser/DarkFileChooserUI.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkDefaultListCellRenderer.java b/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkDefaultListCellRenderer.java index d24aae32..1d4ff8bb 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkDefaultListCellRenderer.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkDefaultListCellRenderer.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListCellRendererDelegate.java b/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListCellRendererDelegate.java index b57eaebf..d0c8f43e 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListCellRendererDelegate.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListCellRendererDelegate.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListUIBridge.java b/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListUIBridge.java index d99197d5..9159fba3 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListUIBridge.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/list/DarkListUIBridge.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/menu/DarkMenuBarUI.java b/core/src/main/java/com/github/weisj/darklaf/ui/menu/DarkMenuBarUI.java index 17851379..e79dfaf8 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/menu/DarkMenuBarUI.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/menu/DarkMenuBarUI.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/menu/DarkMenuItemBorder.java b/core/src/main/java/com/github/weisj/darklaf/ui/menu/DarkMenuItemBorder.java index 02848ef1..d8a08609 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/menu/DarkMenuItemBorder.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/menu/DarkMenuItemBorder.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/optionpane/DarkOptionPaneUI.java b/core/src/main/java/com/github/weisj/darklaf/ui/optionpane/DarkOptionPaneUI.java index b7b0d72e..336914f9 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/optionpane/DarkOptionPaneUI.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/optionpane/DarkOptionPaneUI.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/DarkPopupMenuBorder.java b/core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/DarkPopupMenuBorder.java index 67fe31bc..701f46df 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/DarkPopupMenuBorder.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/DarkPopupMenuBorder.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/DarkPopupMenuUI.java b/core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/DarkPopupMenuUI.java index 286afb80..f6ce92db 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/DarkPopupMenuUI.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/DarkPopupMenuUI.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/MouseGrabber.java b/core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/MouseGrabber.java index 28471db1..bb99b43c 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/MouseGrabber.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/popupmenu/MouseGrabber.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/rootpane/PlainRootPaneBorder.java b/core/src/main/java/com/github/weisj/darklaf/ui/rootpane/PlainRootPaneBorder.java index 2e2fe6db..ca55995d 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/rootpane/PlainRootPaneBorder.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/rootpane/PlainRootPaneBorder.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/scrollpane/ScrollBarUtil.java b/core/src/main/java/com/github/weisj/darklaf/ui/scrollpane/ScrollBarUtil.java index c8d5d6de..cb3a7900 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/scrollpane/ScrollBarUtil.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/scrollpane/ScrollBarUtil.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/spinner/DarkSpinnerBorder.java b/core/src/main/java/com/github/weisj/darklaf/ui/spinner/DarkSpinnerBorder.java index c333da72..51f32c94 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/spinner/DarkSpinnerBorder.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/spinner/DarkSpinnerBorder.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/DarkTabbedPaneUIBridge.java b/core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/DarkTabbedPaneUIBridge.java index bf1d0d34..61c0cda5 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/DarkTabbedPaneUIBridge.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/DarkTabbedPaneUIBridge.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, @@ -370,7 +370,8 @@ public abstract class DarkTabbedPaneUIBridge extends TabbedPaneUI implements Swi public Component.BaselineResizeBehavior getBaselineResizeBehavior(final JComponent c) { super.getBaselineResizeBehavior(c); return switch (tabPane.getTabPlacement()) { - case JTabbedPane.LEFT, JTabbedPane.RIGHT, JTabbedPane.TOP -> Component.BaselineResizeBehavior.CONSTANT_ASCENT; + case JTabbedPane.LEFT, JTabbedPane.RIGHT, JTabbedPane.TOP -> + Component.BaselineResizeBehavior.CONSTANT_ASCENT; case JTabbedPane.BOTTOM -> Component.BaselineResizeBehavior.CONSTANT_DESCENT; default -> Component.BaselineResizeBehavior.OTHER; }; diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameComponentPopupMenu.java b/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameComponentPopupMenu.java index 82fb989d..bb79eecd 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameComponentPopupMenu.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameComponentPopupMenu.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameTabLabelUI.java b/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameTabLabelUI.java index 6d5a21b8..eb8ac196 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameTabLabelUI.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameTabLabelUI.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameUI.java b/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameUI.java index a54cec5f..b4bb0ed8 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameUI.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/DarkTabFrameUI.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/TabFrameLayout.java b/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/TabFrameLayout.java index 10ccfd5c..268ebec5 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/TabFrameLayout.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/tabframe/TabFrameLayout.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/table/renderer/DarkTableCellEditor.java b/core/src/main/java/com/github/weisj/darklaf/ui/table/renderer/DarkTableCellEditor.java index 8f26b3b9..9b0aef3e 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/table/renderer/DarkTableCellEditor.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/table/renderer/DarkTableCellEditor.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/taskpane/DarkTaskPaneUI.java b/core/src/main/java/com/github/weisj/darklaf/ui/taskpane/DarkTaskPaneUI.java index a02c9c4e..6144e79d 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/taskpane/DarkTaskPaneUI.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/taskpane/DarkTaskPaneUI.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/text/DarkCaret.java b/core/src/main/java/com/github/weisj/darklaf/ui/text/DarkCaret.java index 11a279ce..5e309478 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/text/DarkCaret.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/text/DarkCaret.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/text/bridge/DarkTextAreaUIBridge.java b/core/src/main/java/com/github/weisj/darklaf/ui/text/bridge/DarkTextAreaUIBridge.java index 4adb3462..0df363f5 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/text/bridge/DarkTextAreaUIBridge.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/text/bridge/DarkTextAreaUIBridge.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/titledborder/DarkTitledBorder.java b/core/src/main/java/com/github/weisj/darklaf/ui/titledborder/DarkTitledBorder.java index 970c49ca..1c94837f 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/titledborder/DarkTitledBorder.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/titledborder/DarkTitledBorder.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/ButtonGroupInfo.java b/core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/ButtonGroupInfo.java index dd014883..8d2e30df 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/ButtonGroupInfo.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/ButtonGroupInfo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/DarkToggleButtonKeyHandler.java b/core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/DarkToggleButtonKeyHandler.java index 4a24913f..b765b441 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/DarkToggleButtonKeyHandler.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/DarkToggleButtonKeyHandler.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, @@ -35,7 +35,7 @@ public class DarkToggleButtonKeyHandler implements KeyListener { @Override public void keyPressed(final KeyEvent e) { AWTKeyStroke stroke = AWTKeyStroke.getAWTKeyStrokeForEvent(e); - if (stroke != null && e.getSource()instanceof AbstractButton source) { + if (stroke != null && e.getSource() instanceof AbstractButton source) { ButtonModel model = source.getModel(); if (!(model instanceof DefaultButtonModel)) model = null; diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/ToggleButtonFocusNavigationActions.java b/core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/ToggleButtonFocusNavigationActions.java index 0615df4e..44df84af 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/ToggleButtonFocusNavigationActions.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/togglebutton/ToggleButtonFocusNavigationActions.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/toolbar/DarkToolBarBorder.java b/core/src/main/java/com/github/weisj/darklaf/ui/toolbar/DarkToolBarBorder.java index de222d92..38876194 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/toolbar/DarkToolBarBorder.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/toolbar/DarkToolBarBorder.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, @@ -90,7 +90,7 @@ public class DarkToolBarBorder extends AbstractBorder implements UIResource, Swi private String getDockedConstrains(final Component c) { if (c instanceof JComponent) { Component parent = c.getParent(); - if (parent instanceof JComponent && ((JComponent) parent).getLayout()instanceof BorderLayout layout) { + if (parent instanceof JComponent && ((JComponent) parent).getLayout() instanceof BorderLayout layout) { Object constraints = layout.getConstraints(c); if (constraints != null) return constraints.toString(); } diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/toolbar/DarkToolBarUI.java b/core/src/main/java/com/github/weisj/darklaf/ui/toolbar/DarkToolBarUI.java index bb07a728..fc181839 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/toolbar/DarkToolBarUI.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/toolbar/DarkToolBarUI.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/tooltip/DarkToolTipUI.java b/core/src/main/java/com/github/weisj/darklaf/ui/tooltip/DarkToolTipUI.java index 5fb022ec..fbc8f3d3 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/tooltip/DarkToolTipUI.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/tooltip/DarkToolTipUI.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, @@ -296,8 +296,8 @@ public class DarkToolTipUI extends BasicToolTipUI @Override public void propertyChange(final PropertyChangeEvent evt) { String key = evt.getPropertyName(); - if (evt.getSource()instanceof JToolTip tooltip) { - if (tooltip.getBorder()instanceof AlignableTooltipBorder b) { + if (evt.getSource() instanceof JToolTip tooltip) { + if (tooltip.getBorder() instanceof AlignableTooltipBorder b) { Object newVal = evt.getNewValue(); if (KEY_POINTER_LOCATION.equals(key)) { if (newVal instanceof Alignment) { diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/tooltip/ToolTipUtil.java b/core/src/main/java/com/github/weisj/darklaf/ui/tooltip/ToolTipUtil.java index 26c064ac..41c47467 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/tooltip/ToolTipUtil.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/tooltip/ToolTipUtil.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeCellEditor.java b/core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeCellEditor.java index 1243eb03..3209154b 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeCellEditor.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeCellEditor.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeUI.java b/core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeUI.java index 38848047..cd81e48d 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeUI.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeUI.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/util/DarkUIUtil.java b/core/src/main/java/com/github/weisj/darklaf/ui/util/DarkUIUtil.java index 6636d29a..7129f26b 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/util/DarkUIUtil.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/util/DarkUIUtil.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/util/SwingXUtil.java b/core/src/main/java/com/github/weisj/darklaf/ui/util/SwingXUtil.java index 32b8f7d2..2e139892 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/util/SwingXUtil.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/util/SwingXUtil.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, @@ -31,7 +31,7 @@ public final class SwingXUtil { public static Point convertPointToParent(final Component source, final JLayer layer, final Point p) { - if (layer != null && layer.getUI()instanceof TransformUI ui) { + if (layer != null && layer.getUI() instanceof TransformUI ui) { Point pos = SwingUtilities.convertPoint(source, p, layer); AffineTransform transform = ui.getPreferredTransform(layer.getSize(), layer); transform.transform(pos, pos); diff --git a/core/src/main/java/javax/swing/text/DefaultHighlighterDark/DarkHighlightPainter.java b/core/src/main/java/javax/swing/text/DefaultHighlighterDark/DarkHighlightPainter.java index d7f0f14a..1d76e517 100644 --- a/core/src/main/java/javax/swing/text/DefaultHighlighterDark/DarkHighlightPainter.java +++ b/core/src/main/java/javax/swing/text/DefaultHighlighterDark/DarkHighlightPainter.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/org/pbjar/jxlayer/plaf/ext/MouseEventUI.java b/core/src/main/java/org/pbjar/jxlayer/plaf/ext/MouseEventUI.java index d2d22078..feab8a55 100644 --- a/core/src/main/java/org/pbjar/jxlayer/plaf/ext/MouseEventUI.java +++ b/core/src/main/java/org/pbjar/jxlayer/plaf/ext/MouseEventUI.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, @@ -220,8 +220,10 @@ public class MouseEventUI extends AbstractLayerUI { private Component getListeningComponent(final MouseEvent event, final Component component) { Component comp = switch (event.getID()) { - case MouseEvent.MOUSE_CLICKED, MouseEvent.MOUSE_ENTERED, MouseEvent.MOUSE_EXITED, MouseEvent.MOUSE_PRESSED, MouseEvent.MOUSE_RELEASED -> getMouseListeningComponent( - component); + case MouseEvent.MOUSE_CLICKED, MouseEvent.MOUSE_ENTERED, MouseEvent.MOUSE_EXITED, MouseEvent.MOUSE_PRESSED, + MouseEvent.MOUSE_RELEASED -> + getMouseListeningComponent( + component); case MouseEvent.MOUSE_DRAGGED, MouseEvent.MOUSE_MOVED -> getMouseMotionListeningComponent(component); case MouseEvent.MOUSE_WHEEL -> getMouseWheelListeningComponent(component); default -> null; diff --git a/core/src/main/java/org/pbjar/jxlayer/plaf/ext/TransformUI.java b/core/src/main/java/org/pbjar/jxlayer/plaf/ext/TransformUI.java index b2b0c404..fb7b728e 100644 --- a/core/src/main/java/org/pbjar/jxlayer/plaf/ext/TransformUI.java +++ b/core/src/main/java/org/pbjar/jxlayer/plaf/ext/TransformUI.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/java/org/pbjar/jxlayer/plaf/ext/transform/TransformLayout.java b/core/src/main/java/org/pbjar/jxlayer/plaf/ext/transform/TransformLayout.java index f57f6f7c..76598184 100644 --- a/core/src/main/java/org/pbjar/jxlayer/plaf/ext/transform/TransformLayout.java +++ b/core/src/main/java/org/pbjar/jxlayer/plaf/ext/transform/TransformLayout.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/main/resources/com/github/weisj/darklaf/nativelaf/mac.properties b/core/src/main/resources/com/github/weisj/darklaf/nativelaf/mac.properties index 049eb8dd..cc31627b 100644 --- a/core/src/main/resources/com/github/weisj/darklaf/nativelaf/mac.properties +++ b/core/src/main/resources/com/github/weisj/darklaf/nativelaf/mac.properties @@ -1,6 +1,6 @@ # MIT License # -# Copyright (c) 2019-2023 Jannis Weis +# Copyright (c) 2019-2024 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 @@ -65,8 +65,8 @@ Menu.arrowHover.icon = navigation/arrow/thick/arrowRightH kerning.blockList = [Table.font] -PopupMenu.borderRadius = 18 -PopupMenu.border.margins = 5,3,5,3 +PopupMenu.borderRadius = 10 +PopupMenu.border.margins = 3,3,3,3 PopupMenuDivider.insets = 5,5,5,5 PopupMenuDivider.size = 9,9 diff --git a/core/src/main/resources/com/github/weisj/darklaf/nativelaf/windows11.properties b/core/src/main/resources/com/github/weisj/darklaf/nativelaf/windows11.properties index af73b677..c03e9cb1 100644 --- a/core/src/main/resources/com/github/weisj/darklaf/nativelaf/windows11.properties +++ b/core/src/main/resources/com/github/weisj/darklaf/nativelaf/windows11.properties @@ -1,6 +1,6 @@ # MIT License # -# Copyright (c) 2021-2023 Jannis Weis +# Copyright (c) 2021-2024 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 diff --git a/core/src/main/resources/com/github/weisj/darklaf/ui/popupMenu.properties b/core/src/main/resources/com/github/weisj/darklaf/ui/popupMenu.properties index e4e4103e..2e08f6ae 100644 --- a/core/src/main/resources/com/github/weisj/darklaf/ui/popupMenu.properties +++ b/core/src/main/resources/com/github/weisj/darklaf/ui/popupMenu.properties @@ -1,6 +1,6 @@ # MIT License # -# Copyright (c) 2019-2023 Jannis Weis +# Copyright (c) 2019-2024 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 diff --git a/core/src/test/java/com/github/weisj/darklaf/core/documentation/CreateUITable.java b/core/src/test/java/com/github/weisj/darklaf/core/documentation/CreateUITable.java index 781aa942..31b3ff42 100644 --- a/core/src/test/java/com/github/weisj/darklaf/core/documentation/CreateUITable.java +++ b/core/src/test/java/com/github/weisj/darklaf/core/documentation/CreateUITable.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/core/test/FontTest.java b/core/src/test/java/com/github/weisj/darklaf/core/test/FontTest.java index a37a395a..91db6162 100644 --- a/core/src/test/java/com/github/weisj/darklaf/core/test/FontTest.java +++ b/core/src/test/java/com/github/weisj/darklaf/core/test/FontTest.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/defaults/SafeIcon.java b/core/src/test/java/com/github/weisj/darklaf/defaults/SafeIcon.java index 6fe71ce6..4693afda 100644 --- a/core/src/test/java/com/github/weisj/darklaf/defaults/SafeIcon.java +++ b/core/src/test/java/com/github/weisj/darklaf/defaults/SafeIcon.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/icon/AllIconsDemo.java b/core/src/test/java/com/github/weisj/darklaf/icon/AllIconsDemo.java index b3012629..f0298ee4 100644 --- a/core/src/test/java/com/github/weisj/darklaf/icon/AllIconsDemo.java +++ b/core/src/test/java/com/github/weisj/darklaf/icon/AllIconsDemo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/icon/IconDemo.java b/core/src/test/java/com/github/weisj/darklaf/icon/IconDemo.java index d4db7a97..b6402172 100644 --- a/core/src/test/java/com/github/weisj/darklaf/icon/IconDemo.java +++ b/core/src/test/java/com/github/weisj/darklaf/icon/IconDemo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/DemoLauncher.java b/core/src/test/java/com/github/weisj/darklaf/ui/DemoLauncher.java index 9ddb91ee..a6581909 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/DemoLauncher.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/DemoLauncher.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/DemoResources.java b/core/src/test/java/com/github/weisj/darklaf/ui/DemoResources.java index 58151e52..4ba49433 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/DemoResources.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/DemoResources.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/PreferenceChangeDemo.java b/core/src/test/java/com/github/weisj/darklaf/ui/PreferenceChangeDemo.java index b882e6c9..0de86005 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/PreferenceChangeDemo.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/PreferenceChangeDemo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/demo/BaseComponentDemo.java b/core/src/test/java/com/github/weisj/darklaf/ui/demo/BaseComponentDemo.java index a38cec96..611a7f14 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/demo/BaseComponentDemo.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/demo/BaseComponentDemo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2021-2023 Jannis Weis + * Copyright (c) 2021-2024 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, @@ -192,7 +192,7 @@ public abstract class BaseComponentDemo implements ComponentDemo, DemoExecutionS } @SuppressWarnings("unchecked") - private record FunctionBinding (BiConsumer setter, + private record FunctionBinding(BiConsumer setter, Function getter) implements SpecBinding { @Override diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/demo/DemoExecutor.java b/core/src/test/java/com/github/weisj/darklaf/ui/demo/DemoExecutor.java index d39966a3..d977e00e 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/demo/DemoExecutor.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/demo/DemoExecutor.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2021-2023 Jannis Weis + * Copyright (c) 2021-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/demo/SpacerSpec.java b/core/src/test/java/com/github/weisj/darklaf/ui/demo/SpacerSpec.java index b9cb59c0..78c3e194 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/demo/SpacerSpec.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/demo/SpacerSpec.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2021-2023 Jannis Weis + * Copyright (c) 2021-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/dialog/DialogDemo.java b/core/src/test/java/com/github/weisj/darklaf/ui/dialog/DialogDemo.java index 4d1a7492..ad7f1c7b 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/dialog/DialogDemo.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/dialog/DialogDemo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/list/ListDemo.java b/core/src/test/java/com/github/weisj/darklaf/ui/list/ListDemo.java index 50ba0c3d..48e1c5d4 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/list/ListDemo.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/list/ListDemo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/popupMenu/PopupMenuDemo.java b/core/src/test/java/com/github/weisj/darklaf/ui/popupMenu/PopupMenuDemo.java index 31208d67..3e2c2624 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/popupMenu/PopupMenuDemo.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/popupMenu/PopupMenuDemo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/progressBar/ProgressBarDemo.java b/core/src/test/java/com/github/weisj/darklaf/ui/progressBar/ProgressBarDemo.java index 5108ba53..3f28714e 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/progressBar/ProgressBarDemo.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/progressBar/ProgressBarDemo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/scrollPane/OverlayRSyntaxScrollPane.java b/core/src/test/java/com/github/weisj/darklaf/ui/scrollPane/OverlayRSyntaxScrollPane.java index 7b942e8b..ec10c419 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/scrollPane/OverlayRSyntaxScrollPane.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/scrollPane/OverlayRSyntaxScrollPane.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/splitPane/SplitPaneDemo.java b/core/src/test/java/com/github/weisj/darklaf/ui/splitPane/SplitPaneDemo.java index e8aaa894..93d77f6a 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/splitPane/SplitPaneDemo.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/splitPane/SplitPaneDemo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/tabbedPane/AbstractTabbedPaneDemo.java b/core/src/test/java/com/github/weisj/darklaf/ui/tabbedPane/AbstractTabbedPaneDemo.java index fba7d3d8..ff260e08 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/tabbedPane/AbstractTabbedPaneDemo.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/tabbedPane/AbstractTabbedPaneDemo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/core/src/test/java/com/github/weisj/darklaf/ui/toolTip/ToolTipDemo.java b/core/src/test/java/com/github/weisj/darklaf/ui/toolTip/ToolTipDemo.java index 1330549d..70e5a13d 100644 --- a/core/src/test/java/com/github/weisj/darklaf/ui/toolTip/ToolTipDemo.java +++ b/core/src/test/java/com/github/weisj/darklaf/ui/toolTip/ToolTipDemo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/gradle.properties b/gradle.properties index 247eaa67..63b0e4a9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,7 +14,7 @@ darklaf.version = 3.0.3 com.github.vlsi.vlsi-release-plugins.version = 1.90 com.diffplug.spotless.version = 6.25.0 org.ajoberstar.grgit.version = 5.2.2 -ktlint.version = 1.3.1 +ktlint.version = 0.48.0 net.ltgt.errorprone.version = 4.0.1 # Dependencies diff --git a/macos/build.gradle.kts b/macos/build.gradle.kts index 3dd532da..fc890dd4 100644 --- a/macos/build.gradle.kts +++ b/macos/build.gradle.kts @@ -37,7 +37,7 @@ library { "-framework", "AppKit", "-framework", - "Cocoa" + "Cocoa", ) } } diff --git a/macos/src/main/java/com/github/weisj/darklaf/platform/macos/JNIThemeInfoMacOS.java b/macos/src/main/java/com/github/weisj/darklaf/platform/macos/JNIThemeInfoMacOS.java index 92b181b6..fcabd340 100644 --- a/macos/src/main/java/com/github/weisj/darklaf/platform/macos/JNIThemeInfoMacOS.java +++ b/macos/src/main/java/com/github/weisj/darklaf/platform/macos/JNIThemeInfoMacOS.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/macos/src/main/java/com/github/weisj/darklaf/platform/macos/MacOSThemePreferenceProvider.java b/macos/src/main/java/com/github/weisj/darklaf/platform/macos/MacOSThemePreferenceProvider.java index caaae6d0..4063893a 100644 --- a/macos/src/main/java/com/github/weisj/darklaf/platform/macos/MacOSThemePreferenceProvider.java +++ b/macos/src/main/java/com/github/weisj/darklaf/platform/macos/MacOSThemePreferenceProvider.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/platform-base/src/main/java/com/github/weisj/darklaf/platform/SystemInfo.java b/platform-base/src/main/java/com/github/weisj/darklaf/platform/SystemInfo.java index 785d5b06..2a830717 100644 --- a/platform-base/src/main/java/com/github/weisj/darklaf/platform/SystemInfo.java +++ b/platform-base/src/main/java/com/github/weisj/darklaf/platform/SystemInfo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/platform-base/src/main/java/com/github/weisj/darklaf/platform/TitlePaneLayoutInfo.java b/platform-base/src/main/java/com/github/weisj/darklaf/platform/TitlePaneLayoutInfo.java index 83862a04..986a1397 100644 --- a/platform-base/src/main/java/com/github/weisj/darklaf/platform/TitlePaneLayoutInfo.java +++ b/platform-base/src/main/java/com/github/weisj/darklaf/platform/TitlePaneLayoutInfo.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2022-2023 Jannis Weis + * Copyright (c) 2022-2024 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, diff --git a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/AwareIconStyle.java b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/AwareIconStyle.java index fe56121f..4aa1ff54 100644 --- a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/AwareIconStyle.java +++ b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/AwareIconStyle.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/DarkSVGIcon.java b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/DarkSVGIcon.java index 8bcde2bf..377914db 100644 --- a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/DarkSVGIcon.java +++ b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/DarkSVGIcon.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/EmptyIcon.java b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/EmptyIcon.java index 60cbf9f8..3c357a2c 100644 --- a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/EmptyIcon.java +++ b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/EmptyIcon.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/IconUtil.java b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/IconUtil.java index 2b84cbc2..4d88fa43 100644 --- a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/IconUtil.java +++ b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/IconUtil.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/StateIcon.java b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/StateIcon.java index 5dd661d5..e9726c46 100644 --- a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/StateIcon.java +++ b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/StateIcon.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/UIAwareIcon.java b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/UIAwareIcon.java index e36e5eb6..e1cc7b2d 100644 --- a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/UIAwareIcon.java +++ b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/UIAwareIcon.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/AccentColorRule.java b/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/AccentColorRule.java index c6b9ee2b..fa781a6f 100644 --- a/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/AccentColorRule.java +++ b/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/AccentColorRule.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/FontPrototype.java b/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/FontPrototype.java index 9a8d21be..9613647e 100644 --- a/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/FontPrototype.java +++ b/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/FontPrototype.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2022-2023 Jannis Weis + * Copyright (c) 2022-2024 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, diff --git a/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/FontSizeRule.java b/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/FontSizeRule.java index ded5ad31..783f6705 100644 --- a/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/FontSizeRule.java +++ b/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/FontSizeRule.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/PreferredThemeStyle.java b/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/PreferredThemeStyle.java index 54db13fe..1847faf5 100644 --- a/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/PreferredThemeStyle.java +++ b/theme-spec/src/main/java/com/github/weisj/darklaf/theme/spec/PreferredThemeStyle.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/theme/src/main/java/com/github/weisj/darklaf/theme/ColorPalette.java b/theme/src/main/java/com/github/weisj/darklaf/theme/ColorPalette.java index bf913359..c141ee26 100644 --- a/theme/src/main/java/com/github/weisj/darklaf/theme/ColorPalette.java +++ b/theme/src/main/java/com/github/weisj/darklaf/theme/ColorPalette.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2021-2023 Jannis Weis + * Copyright (c) 2021-2024 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, diff --git a/theme/src/main/java/com/github/weisj/darklaf/theme/Theme.java b/theme/src/main/java/com/github/weisj/darklaf/theme/Theme.java index e8f5257b..76be91d1 100644 --- a/theme/src/main/java/com/github/weisj/darklaf/theme/Theme.java +++ b/theme/src/main/java/com/github/weisj/darklaf/theme/Theme.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/theme/src/main/java/com/github/weisj/darklaf/theme/event/ThemeChangeEvent.java b/theme/src/main/java/com/github/weisj/darklaf/theme/event/ThemeChangeEvent.java index 03b191fe..e3d5426e 100644 --- a/theme/src/main/java/com/github/weisj/darklaf/theme/event/ThemeChangeEvent.java +++ b/theme/src/main/java/com/github/weisj/darklaf/theme/event/ThemeChangeEvent.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/theme/src/main/java/com/github/weisj/darklaf/theme/event/ThemePreferenceChangeEvent.java b/theme/src/main/java/com/github/weisj/darklaf/theme/event/ThemePreferenceChangeEvent.java index 8df492cd..eeb93086 100644 --- a/theme/src/main/java/com/github/weisj/darklaf/theme/event/ThemePreferenceChangeEvent.java +++ b/theme/src/main/java/com/github/weisj/darklaf/theme/event/ThemePreferenceChangeEvent.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/theme/src/main/java/com/github/weisj/darklaf/theme/info/DefaultThemeProvider.java b/theme/src/main/java/com/github/weisj/darklaf/theme/info/DefaultThemeProvider.java index f6428a58..767585d1 100644 --- a/theme/src/main/java/com/github/weisj/darklaf/theme/info/DefaultThemeProvider.java +++ b/theme/src/main/java/com/github/weisj/darklaf/theme/info/DefaultThemeProvider.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/utils/src/main/java/com/github/weisj/darklaf/util/Alignment.java b/utils/src/main/java/com/github/weisj/darklaf/util/Alignment.java index 7803ebca..aa012739 100644 --- a/utils/src/main/java/com/github/weisj/darklaf/util/Alignment.java +++ b/utils/src/main/java/com/github/weisj/darklaf/util/Alignment.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/utils/src/main/java/com/github/weisj/darklaf/util/AlignmentExt.java b/utils/src/main/java/com/github/weisj/darklaf/util/AlignmentExt.java index 5b58e68d..5578fe1d 100644 --- a/utils/src/main/java/com/github/weisj/darklaf/util/AlignmentExt.java +++ b/utils/src/main/java/com/github/weisj/darklaf/util/AlignmentExt.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2020-2023 Jannis Weis + * Copyright (c) 2020-2024 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, diff --git a/utils/src/main/java/com/github/weisj/darklaf/util/FontUtil.java b/utils/src/main/java/com/github/weisj/darklaf/util/FontUtil.java index b9b09b14..e87f3a45 100644 --- a/utils/src/main/java/com/github/weisj/darklaf/util/FontUtil.java +++ b/utils/src/main/java/com/github/weisj/darklaf/util/FontUtil.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/utils/src/main/java/com/github/weisj/darklaf/util/PropertyUtil.java b/utils/src/main/java/com/github/weisj/darklaf/util/PropertyUtil.java index a58d9e39..e368f99e 100644 --- a/utils/src/main/java/com/github/weisj/darklaf/util/PropertyUtil.java +++ b/utils/src/main/java/com/github/weisj/darklaf/util/PropertyUtil.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/utils/src/main/java/com/github/weisj/darklaf/util/StreamUtil.java b/utils/src/main/java/com/github/weisj/darklaf/util/StreamUtil.java index 0b64447c..9de14823 100644 --- a/utils/src/main/java/com/github/weisj/darklaf/util/StreamUtil.java +++ b/utils/src/main/java/com/github/weisj/darklaf/util/StreamUtil.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/utils/src/main/java/com/github/weisj/darklaf/util/StringUtil.java b/utils/src/main/java/com/github/weisj/darklaf/util/StringUtil.java index a720cca7..c294d4f7 100644 --- a/utils/src/main/java/com/github/weisj/darklaf/util/StringUtil.java +++ b/utils/src/main/java/com/github/weisj/darklaf/util/StringUtil.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/utils/src/main/java/com/github/weisj/darklaf/util/graphics/ImagePainter.java b/utils/src/main/java/com/github/weisj/darklaf/util/graphics/ImagePainter.java index 519903b6..581d0381 100644 --- a/utils/src/main/java/com/github/weisj/darklaf/util/graphics/ImagePainter.java +++ b/utils/src/main/java/com/github/weisj/darklaf/util/graphics/ImagePainter.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2021-2023 Jannis Weis + * Copyright (c) 2021-2024 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, diff --git a/windows/build.gradle.kts b/windows/build.gradle.kts index b46c3db3..35cdc561 100644 --- a/windows/build.gradle.kts +++ b/windows/build.gradle.kts @@ -22,18 +22,19 @@ library { compilerArgs.addAll( toolChain.map { when (it) { - is Gcc, is Clang -> listOf( - "--std=c++17", - "-Wall", - "-Wextra", - "-pedantic", - "-Wno-language-extension-token", - "-Wno-ignored-attributes" - ) + is Gcc, is Clang -> + listOf( + "--std=c++17", + "-Wall", + "-Wextra", + "-pedantic", + "-Wno-language-extension-token", + "-Wno-ignored-attributes", + ) is VisualCpp -> listOf("/std:c++17", "/EHsc", "/W4", "/permissive", "/WX") else -> emptyList() } - } + }, ) optimizedBinary() } @@ -41,23 +42,25 @@ library { linkerArgs.addAll( toolChain.map { when (it) { - is Gcc, is Clang -> listOf( - "-ldwmapi", - "-lGdi32", - "-luser32", - "-ladvapi32", - "-lShell32" - ) - is VisualCpp -> listOf( - "dwmapi.lib", - "user32.lib", - "Gdi32.lib", - "Advapi32.lib", - "Shell32.lib" - ) + is Gcc, is Clang -> + listOf( + "-ldwmapi", + "-lGdi32", + "-luser32", + "-ladvapi32", + "-lShell32", + ) + is VisualCpp -> + listOf( + "dwmapi.lib", + "user32.lib", + "Gdi32.lib", + "Advapi32.lib", + "Shell32.lib", + ) else -> emptyList() } - } + }, ) } } diff --git a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/WindowsDecorationsProvider.java b/windows/src/main/java/com/github/weisj/darklaf/platform/windows/WindowsDecorationsProvider.java index 9bfaee26..19f76400 100644 --- a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/WindowsDecorationsProvider.java +++ b/windows/src/main/java/com/github/weisj/darklaf/platform/windows/WindowsDecorationsProvider.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, diff --git a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java b/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java index 274678b8..6bb180ca 100644 --- a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java +++ b/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2019-2023 Jannis Weis + * Copyright (c) 2019-2024 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, @@ -965,7 +965,7 @@ public class WindowsTitlePane extends CustomTitlePane { updateSystemIcon(getGraphicsConfiguration()); revalidate(); repaint(); - } else if (PropertyKey.BACKGROUND.equals(name) && pce.getNewValue()instanceof Color color) { + } else if (PropertyKey.BACKGROUND.equals(name) && pce.getNewValue() instanceof Color color) { if (color == null) return; JNIDecorationsWindows.setBackground(windowHandle.value(), color.getRed(), color.getGreen(), color.getBlue());