mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 06:57:13 -06:00
Drop shadows:
- reworked drop shadows implementation to support 4-sided shadows - use 4-sided shadow for internal frames - made shadows configurable in UI defaults - made shadows dark in dark themes (issue #94)
This commit is contained in:
@@ -328,6 +328,8 @@ HyperlinkUI com.formdev.flatlaf.swingx.ui.FlatHyperlinkUI
|
||||
#---- InternalFrame ----
|
||||
|
||||
InternalFrame.activeBorderColor #2b2d2e javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.activeDropShadowInsets 5,5,6,6 javax.swing.plaf.InsetsUIResource [UI]
|
||||
InternalFrame.activeDropShadowOpacity 0.5
|
||||
InternalFrame.activeTitleBackground #242526 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.activeTitleForeground #bbbbbb javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.border [lazy] 6,6,6,6 false com.formdev.flatlaf.ui.FlatInternalFrameUI$FlatInternalFrameBorder [UI]
|
||||
@@ -346,9 +348,12 @@ InternalFrame.closeHoverForeground #ffffff javax.swing.plaf.ColorUIResource [
|
||||
InternalFrame.closeIcon [lazy] 24,24 com.formdev.flatlaf.icons.FlatInternalFrameCloseIcon [UI]
|
||||
InternalFrame.closePressedBackground [lazy] #ad3b37 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.closePressedForeground #ffffff javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.dropShadowPainted true
|
||||
InternalFrame.icon [lazy] 16,16 sun.swing.ImageIconUIResource [UI] (sun.awt.image.ToolkitImage)
|
||||
InternalFrame.iconifyIcon [lazy] 24,24 com.formdev.flatlaf.icons.FlatInternalFrameIconifyIcon [UI]
|
||||
InternalFrame.inactiveBorderColor #353739 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.inactiveDropShadowInsets 3,3,4,4 javax.swing.plaf.InsetsUIResource [UI]
|
||||
InternalFrame.inactiveDropShadowOpacity 0.75
|
||||
InternalFrame.inactiveTitleBackground #303234 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.inactiveTitleForeground #777777 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.maximizeIcon [lazy] 24,24 com.formdev.flatlaf.icons.FlatInternalFrameMaximizeIcon [UI]
|
||||
@@ -630,6 +635,14 @@ PasswordField.selectionForeground #bbbbbb javax.swing.plaf.ColorUIResource [U
|
||||
PasswordFieldUI com.formdev.flatlaf.ui.FlatPasswordFieldUI
|
||||
|
||||
|
||||
#---- Popup ----
|
||||
|
||||
Popup.dropShadowColor #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
Popup.dropShadowInsets -4,-4,4,4 javax.swing.plaf.InsetsUIResource [UI]
|
||||
Popup.dropShadowOpacity 0.25
|
||||
Popup.dropShadowPainted true
|
||||
|
||||
|
||||
#---- PopupMenu ----
|
||||
|
||||
PopupMenu.background #303234 javax.swing.plaf.ColorUIResource [UI]
|
||||
@@ -1187,6 +1200,15 @@ inactiveCaptionBorder #393c3d javax.swing.plaf.ColorUIResource [UI]
|
||||
inactiveCaptionText #bbbbbb javax.swing.plaf.ColorUIResource [UI]
|
||||
info #1e2123 javax.swing.plaf.ColorUIResource [UI]
|
||||
infoText #bbbbbb javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
|
||||
#---- laf ----
|
||||
|
||||
laf.scaleFactor [active] 1.0
|
||||
|
||||
|
||||
#---- ----
|
||||
|
||||
menu #3c3f41 javax.swing.plaf.ColorUIResource [UI]
|
||||
menuText #bbbbbb javax.swing.plaf.ColorUIResource [UI]
|
||||
scrollbar #3f4244 javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
@@ -327,6 +327,8 @@ HyperlinkUI com.formdev.flatlaf.swingx.ui.FlatHyperlinkUI
|
||||
#---- InternalFrame ----
|
||||
|
||||
InternalFrame.activeBorderColor #2b2d2e javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.activeDropShadowInsets 5,5,6,6 javax.swing.plaf.InsetsUIResource [UI]
|
||||
InternalFrame.activeDropShadowOpacity 0.5
|
||||
InternalFrame.activeTitleBackground #242526 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.activeTitleForeground #bbbbbb javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.border [lazy] 6,6,6,6 false com.formdev.flatlaf.ui.FlatInternalFrameUI$FlatInternalFrameBorder [UI]
|
||||
@@ -345,9 +347,12 @@ InternalFrame.closeHoverForeground #ffffff javax.swing.plaf.ColorUIResource [
|
||||
InternalFrame.closeIcon [lazy] 24,24 com.formdev.flatlaf.icons.FlatInternalFrameCloseIcon [UI]
|
||||
InternalFrame.closePressedBackground [lazy] #ad3b37 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.closePressedForeground #ffffff javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.dropShadowPainted true
|
||||
InternalFrame.icon [lazy] 16,16 sun.swing.ImageIconUIResource [UI] (sun.awt.image.ToolkitImage)
|
||||
InternalFrame.iconifyIcon [lazy] 24,24 com.formdev.flatlaf.icons.FlatInternalFrameIconifyIcon [UI]
|
||||
InternalFrame.inactiveBorderColor #353739 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.inactiveDropShadowInsets 3,3,4,4 javax.swing.plaf.InsetsUIResource [UI]
|
||||
InternalFrame.inactiveDropShadowOpacity 0.75
|
||||
InternalFrame.inactiveTitleBackground #303234 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.inactiveTitleForeground #777777 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.maximizeIcon [lazy] 24,24 com.formdev.flatlaf.icons.FlatInternalFrameMaximizeIcon [UI]
|
||||
@@ -628,6 +633,14 @@ PasswordField.selectionForeground #bbbbbb javax.swing.plaf.ColorUIResource [U
|
||||
PasswordFieldUI com.formdev.flatlaf.ui.FlatPasswordFieldUI
|
||||
|
||||
|
||||
#---- Popup ----
|
||||
|
||||
Popup.dropShadowColor #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
Popup.dropShadowInsets -4,-4,4,4 javax.swing.plaf.InsetsUIResource [UI]
|
||||
Popup.dropShadowOpacity 0.25
|
||||
Popup.dropShadowPainted true
|
||||
|
||||
|
||||
#---- PopupMenu ----
|
||||
|
||||
PopupMenu.background #303234 javax.swing.plaf.ColorUIResource [UI]
|
||||
@@ -1185,6 +1198,15 @@ inactiveCaptionBorder #393c3d javax.swing.plaf.ColorUIResource [UI]
|
||||
inactiveCaptionText #bbbbbb javax.swing.plaf.ColorUIResource [UI]
|
||||
info #1e2123 javax.swing.plaf.ColorUIResource [UI]
|
||||
infoText #bbbbbb javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
|
||||
#---- laf ----
|
||||
|
||||
laf.scaleFactor [active] 1.0
|
||||
|
||||
|
||||
#---- ----
|
||||
|
||||
menu #3c3f41 javax.swing.plaf.ColorUIResource [UI]
|
||||
menuText #bbbbbb javax.swing.plaf.ColorUIResource [UI]
|
||||
scrollbar #3f4244 javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
@@ -330,6 +330,8 @@ HyperlinkUI com.formdev.flatlaf.swingx.ui.FlatHyperlinkUI
|
||||
#---- InternalFrame ----
|
||||
|
||||
InternalFrame.activeBorderColor #919191 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.activeDropShadowInsets 5,5,6,6 javax.swing.plaf.InsetsUIResource [UI]
|
||||
InternalFrame.activeDropShadowOpacity 0.25
|
||||
InternalFrame.activeTitleBackground #ffffff javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.activeTitleForeground #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.border [lazy] 6,6,6,6 false com.formdev.flatlaf.ui.FlatInternalFrameUI$FlatInternalFrameBorder [UI]
|
||||
@@ -348,9 +350,12 @@ InternalFrame.closeHoverForeground #ffffff javax.swing.plaf.ColorUIResource [
|
||||
InternalFrame.closeIcon [lazy] 24,24 com.formdev.flatlaf.icons.FlatInternalFrameCloseIcon [UI]
|
||||
InternalFrame.closePressedBackground [lazy] #d22e38 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.closePressedForeground #ffffff javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.dropShadowPainted true
|
||||
InternalFrame.icon [lazy] 16,16 sun.swing.ImageIconUIResource [UI] (sun.awt.image.ToolkitImage)
|
||||
InternalFrame.iconifyIcon [lazy] 24,24 com.formdev.flatlaf.icons.FlatInternalFrameIconifyIcon [UI]
|
||||
InternalFrame.inactiveBorderColor #c4c4c4 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.inactiveDropShadowInsets 3,3,4,4 javax.swing.plaf.InsetsUIResource [UI]
|
||||
InternalFrame.inactiveDropShadowOpacity 0.5
|
||||
InternalFrame.inactiveTitleBackground #fafafa javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.inactiveTitleForeground #8c8c8c javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.maximizeIcon [lazy] 24,24 com.formdev.flatlaf.icons.FlatInternalFrameMaximizeIcon [UI]
|
||||
@@ -632,6 +637,14 @@ PasswordField.selectionForeground #ffffff javax.swing.plaf.ColorUIResource [U
|
||||
PasswordFieldUI com.formdev.flatlaf.ui.FlatPasswordFieldUI
|
||||
|
||||
|
||||
#---- Popup ----
|
||||
|
||||
Popup.dropShadowColor #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
Popup.dropShadowInsets -4,-4,4,4 javax.swing.plaf.InsetsUIResource [UI]
|
||||
Popup.dropShadowOpacity 0.15
|
||||
Popup.dropShadowPainted true
|
||||
|
||||
|
||||
#---- PopupMenu ----
|
||||
|
||||
PopupMenu.background #ffffff javax.swing.plaf.ColorUIResource [UI]
|
||||
@@ -1189,6 +1202,15 @@ inactiveCaptionBorder #bfcddb javax.swing.plaf.ColorUIResource [UI]
|
||||
inactiveCaptionText #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
info #fafafa javax.swing.plaf.ColorUIResource [UI]
|
||||
infoText #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
|
||||
#---- laf ----
|
||||
|
||||
laf.scaleFactor [active] 1.0
|
||||
|
||||
|
||||
#---- ----
|
||||
|
||||
menu #f2f2f2 javax.swing.plaf.ColorUIResource [UI]
|
||||
menuText #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
scrollbar #f5f5f5 javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
@@ -329,6 +329,8 @@ HyperlinkUI com.formdev.flatlaf.swingx.ui.FlatHyperlinkUI
|
||||
#---- InternalFrame ----
|
||||
|
||||
InternalFrame.activeBorderColor #919191 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.activeDropShadowInsets 5,5,6,6 javax.swing.plaf.InsetsUIResource [UI]
|
||||
InternalFrame.activeDropShadowOpacity 0.25
|
||||
InternalFrame.activeTitleBackground #ffffff javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.activeTitleForeground #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.border [lazy] 6,6,6,6 false com.formdev.flatlaf.ui.FlatInternalFrameUI$FlatInternalFrameBorder [UI]
|
||||
@@ -347,9 +349,12 @@ InternalFrame.closeHoverForeground #ffffff javax.swing.plaf.ColorUIResource [
|
||||
InternalFrame.closeIcon [lazy] 24,24 com.formdev.flatlaf.icons.FlatInternalFrameCloseIcon [UI]
|
||||
InternalFrame.closePressedBackground [lazy] #d22e38 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.closePressedForeground #ffffff javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.dropShadowPainted true
|
||||
InternalFrame.icon [lazy] 16,16 sun.swing.ImageIconUIResource [UI] (sun.awt.image.ToolkitImage)
|
||||
InternalFrame.iconifyIcon [lazy] 24,24 com.formdev.flatlaf.icons.FlatInternalFrameIconifyIcon [UI]
|
||||
InternalFrame.inactiveBorderColor #c4c4c4 javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.inactiveDropShadowInsets 3,3,4,4 javax.swing.plaf.InsetsUIResource [UI]
|
||||
InternalFrame.inactiveDropShadowOpacity 0.5
|
||||
InternalFrame.inactiveTitleBackground #fafafa javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.inactiveTitleForeground #8c8c8c javax.swing.plaf.ColorUIResource [UI]
|
||||
InternalFrame.maximizeIcon [lazy] 24,24 com.formdev.flatlaf.icons.FlatInternalFrameMaximizeIcon [UI]
|
||||
@@ -630,6 +635,14 @@ PasswordField.selectionForeground #ffffff javax.swing.plaf.ColorUIResource [U
|
||||
PasswordFieldUI com.formdev.flatlaf.ui.FlatPasswordFieldUI
|
||||
|
||||
|
||||
#---- Popup ----
|
||||
|
||||
Popup.dropShadowColor #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
Popup.dropShadowInsets -4,-4,4,4 javax.swing.plaf.InsetsUIResource [UI]
|
||||
Popup.dropShadowOpacity 0.15
|
||||
Popup.dropShadowPainted true
|
||||
|
||||
|
||||
#---- PopupMenu ----
|
||||
|
||||
PopupMenu.background #ffffff javax.swing.plaf.ColorUIResource [UI]
|
||||
@@ -1187,6 +1200,15 @@ inactiveCaptionBorder #bfcddb javax.swing.plaf.ColorUIResource [UI]
|
||||
inactiveCaptionText #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
info #fafafa javax.swing.plaf.ColorUIResource [UI]
|
||||
infoText #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
|
||||
#---- laf ----
|
||||
|
||||
laf.scaleFactor [active] 1.0
|
||||
|
||||
|
||||
#---- ----
|
||||
|
||||
menu #f2f2f2 javax.swing.plaf.ColorUIResource [UI]
|
||||
menuText #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
scrollbar #f5f5f5 javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
Reference in New Issue
Block a user