mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
List implementation
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2019 FormDev Software GmbH
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.formdev.flatlaf.ui;
|
||||
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.plaf.ComponentUI;
|
||||
import javax.swing.plaf.basic.BasicListUI;
|
||||
|
||||
/**
|
||||
* Provides the Flat LaF UI delegate for {@link javax.swing.JList}.
|
||||
*
|
||||
* TODO document used UI defaults of superclass
|
||||
*
|
||||
* @author Karl Tauber
|
||||
*/
|
||||
public class FlatListUI
|
||||
extends BasicListUI
|
||||
{
|
||||
public static ComponentUI createUI( JComponent c ) {
|
||||
return new FlatListUI();
|
||||
}
|
||||
}
|
||||
@@ -106,6 +106,11 @@ Component.focusedBorderColor=466d94
|
||||
Component.focusColor=3d6185
|
||||
|
||||
|
||||
#---- List ----
|
||||
|
||||
List.background=@textComponentBackground
|
||||
|
||||
|
||||
#---- Menu ----
|
||||
|
||||
Menu.icon.arrowColor=A7A7A7
|
||||
|
||||
@@ -23,6 +23,7 @@ ComboBoxUI=com.formdev.flatlaf.ui.FlatComboBoxUI
|
||||
EditorPaneUI=com.formdev.flatlaf.ui.FlatEditorPaneUI
|
||||
FormattedTextFieldUI=com.formdev.flatlaf.ui.FlatFormattedTextFieldUI
|
||||
LabelUI=com.formdev.flatlaf.ui.FlatLabelUI
|
||||
ListUI=com.formdev.flatlaf.ui.FlatListUI
|
||||
MenuUI=com.formdev.flatlaf.ui.FlatMenuUI
|
||||
MenuBarUI=com.formdev.flatlaf.ui.FlatMenuBarUI
|
||||
MenuItemUI=com.formdev.flatlaf.ui.FlatMenuItemUI
|
||||
@@ -99,6 +100,7 @@ FormattedTextField.margin=@textComponentMargin
|
||||
|
||||
#---- List ----
|
||||
|
||||
List.border=1,0,1,0
|
||||
List.cellNoFocusBorder=1,6,1,6
|
||||
List.focusCellHighlightBorder=1,6,1,6,@cellFocusColor
|
||||
List.focusSelectedCellHighlightBorder=1,6,1,6,@cellFocusColor
|
||||
|
||||
@@ -106,6 +106,11 @@ Component.focusedBorderColor=87afda
|
||||
Component.focusColor=97c3f3
|
||||
|
||||
|
||||
#---- List ----
|
||||
|
||||
List.background=@textComponentBackground
|
||||
|
||||
|
||||
#---- Menu ----
|
||||
|
||||
Menu.icon.arrowColor=666666
|
||||
|
||||
@@ -100,6 +100,7 @@ Label.disabledForeground=000088
|
||||
|
||||
#---- List ----
|
||||
|
||||
List.background=f0ffff
|
||||
List.cellNoFocusBorder=1,6,1,6
|
||||
List.focusSelectedCellHighlightBorder=1,6,1,6,880000
|
||||
List.focusCellHighlightBorder=1,6,1,6,880000
|
||||
|
||||
Reference in New Issue
Block a user