List implementation

This commit is contained in:
Karl Tauber
2019-09-03 10:28:59 +02:00
parent 92bcc35354
commit 18058f2ea2
5 changed files with 49 additions and 0 deletions

View File

@@ -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();
}
}

View File

@@ -106,6 +106,11 @@ Component.focusedBorderColor=466d94
Component.focusColor=3d6185
#---- List ----
List.background=@textComponentBackground
#---- Menu ----
Menu.icon.arrowColor=A7A7A7

View File

@@ -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

View File

@@ -106,6 +106,11 @@ Component.focusedBorderColor=87afda
Component.focusColor=97c3f3
#---- List ----
List.background=@textComponentBackground
#---- Menu ----
Menu.icon.arrowColor=666666

View File

@@ -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