8263977: GTK L&F: Cleanup duplicate checks in GTKStyle and GTKLookAndFeel
Reviewed-by: serb, pbansal, kizune
This commit is contained in:
parent
57d8f1d09c
commit
df01b15b8b
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -249,7 +249,6 @@ public class GTKLookAndFeel extends SynthLookAndFeel {
|
||||
region == Region.SPINNER ||
|
||||
region == Region.TABLE ||
|
||||
region == Region.TEXT_AREA ||
|
||||
region == Region.TEXT_FIELD ||
|
||||
region == Region.TEXT_PANE ||
|
||||
region == Region.TREE);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -166,8 +166,7 @@ class GTKStyle extends SynthStyle implements GTKConstants {
|
||||
id == Region.TABBED_PANE_TAB ||
|
||||
id == Region.TOGGLE_BUTTON ||
|
||||
id == Region.TOOL_TIP ||
|
||||
id == Region.MENU_ITEM_ACCELERATOR ||
|
||||
id == Region.TABBED_PANE_TAB)) {
|
||||
id == Region.MENU_ITEM_ACCELERATOR)) {
|
||||
type = ColorType.FOREGROUND;
|
||||
} else if (id == Region.TABLE ||
|
||||
id == Region.LIST ||
|
||||
|
Loading…
Reference in New Issue
Block a user