8263977: GTK L&F: Cleanup duplicate checks in GTKStyle and GTKLookAndFeel

Reviewed-by: serb, pbansal, kizune
This commit is contained in:
Aleksey Shipilev 2021-03-23 06:54:27 +00:00
parent 57d8f1d09c
commit df01b15b8b
2 changed files with 3 additions and 5 deletions

View File

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

View File

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