mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
SwingX: update fonts in JXHeader, JXMonthView, JXTaskPane and JXTitledPanel when changing default font
This commit is contained in:
@@ -35,6 +35,8 @@ FlatLaf Change Log
|
|||||||
- Fixed missing tree lines (if enabled) for wide-selected rows. (issue #598)
|
- Fixed missing tree lines (if enabled) for wide-selected rows. (issue #598)
|
||||||
- Fixed scaling of tree lines and fixed alignment to expand/collapse arrows.
|
- Fixed scaling of tree lines and fixed alignment to expand/collapse arrows.
|
||||||
- Removed support for dashed tree lines. `Tree.lineTypeDashed` is now ignored.
|
- Removed support for dashed tree lines. `Tree.lineTypeDashed` is now ignored.
|
||||||
|
- SwingX: Fonts in `JXHeader`, `JXMonthView`, `JXTaskPane` and `JXTitledPanel`
|
||||||
|
were not updated when changing default font.
|
||||||
|
|
||||||
|
|
||||||
## 2.6
|
## 2.6
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ package com.formdev.flatlaf.swingx.ui;
|
|||||||
|
|
||||||
import static com.formdev.flatlaf.util.UIScale.scale;
|
import static com.formdev.flatlaf.util.UIScale.scale;
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Font;
|
|
||||||
import java.awt.Graphics2D;
|
import java.awt.Graphics2D;
|
||||||
import java.awt.Insets;
|
import java.awt.Insets;
|
||||||
import java.awt.geom.Rectangle2D;
|
import java.awt.geom.Rectangle2D;
|
||||||
@@ -53,9 +52,6 @@ public class FlatTitledPanelUI
|
|||||||
installProperty( titledPanel, "titlePainter", new PainterUIResource<>(
|
installProperty( titledPanel, "titlePainter", new PainterUIResource<>(
|
||||||
new TitlePainter( UIManager.getColor( "JXTitledPanel.titleBackground" ),
|
new TitlePainter( UIManager.getColor( "JXTitledPanel.titleBackground" ),
|
||||||
UIManager.getColor( "JXTitledPanel.borderColor" ) ) ) );
|
UIManager.getColor( "JXTitledPanel.borderColor" ) ) ) );
|
||||||
|
|
||||||
// make title bold
|
|
||||||
installProperty( titledPanel, "titleFont", UIManager.getFont( "JXTitledPanel.titleFont" ).deriveFont( Font.BOLD ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -35,11 +35,23 @@ ColumnControlButton.actionIcon = com.formdev.flatlaf.swingx.icons.FlatColumnCont
|
|||||||
JXDatePicker.border = com.formdev.flatlaf.swingx.ui.FlatDatePickerBorder
|
JXDatePicker.border = com.formdev.flatlaf.swingx.ui.FlatDatePickerBorder
|
||||||
|
|
||||||
|
|
||||||
|
#---- Header ----
|
||||||
|
|
||||||
|
JXHeader.titleFont = +bold
|
||||||
|
JXHeader.descriptionFont = +0
|
||||||
|
|
||||||
|
|
||||||
#---- MonthView ----
|
#---- MonthView ----
|
||||||
|
|
||||||
JXMonthView.monthDownFileName = {icon}com.formdev.flatlaf.swingx.ui.FlatMonthDownIcon
|
JXMonthView.monthDownFileName = {icon}com.formdev.flatlaf.swingx.ui.FlatMonthDownIcon
|
||||||
JXMonthView.monthUpFileName = {icon}com.formdev.flatlaf.swingx.ui.FlatMonthUpIcon
|
JXMonthView.monthUpFileName = {icon}com.formdev.flatlaf.swingx.ui.FlatMonthUpIcon
|
||||||
JXMonthView.todayColor = @foreground
|
JXMonthView.todayColor = @foreground
|
||||||
|
JXMonthView.font = +0
|
||||||
|
|
||||||
|
|
||||||
|
#---- TaskPane ----
|
||||||
|
|
||||||
|
TaskPane.font = +bold
|
||||||
|
|
||||||
|
|
||||||
#---- TitledPanel ----
|
#---- TitledPanel ----
|
||||||
@@ -48,6 +60,7 @@ JXTitledPanel.borderColor = $Button.borderColor
|
|||||||
JXTitledPanel.titleBackground = $TaskPane.titleBackgroundGradientStart
|
JXTitledPanel.titleBackground = $TaskPane.titleBackgroundGradientStart
|
||||||
JXTitledPanel.titleForeground = $TaskPane.titleForeground
|
JXTitledPanel.titleForeground = $TaskPane.titleForeground
|
||||||
JXTitledPanel.captionInsets = 4,10,4,10
|
JXTitledPanel.captionInsets = 4,10,4,10
|
||||||
|
JXTitledPanel.titleFont = +bold
|
||||||
|
|
||||||
|
|
||||||
#---- SearchField ----
|
#---- SearchField ----
|
||||||
|
|||||||
Reference in New Issue
Block a user