Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
e418bb2a
Commit
e418bb2a
authored
10 years ago
by
Konstantin Bulenkov
Browse files
Options
Download
Email Patches
Plain Diff
use UIUtil.getSidePanelColor()
parent
bef8a7fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/ProjectStructureConfigurable.java
+1
-1
.../roots/ui/configuration/ProjectStructureConfigurable.java
java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/SidePanel.java
+3
-2
...om/intellij/openapi/roots/ui/configuration/SidePanel.java
with
4 additions
and
3 deletions
+4
-3
java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/ProjectStructureConfigurable.java
+
1
-
1
View file @
e418bb2a
...
...
@@ -203,7 +203,7 @@ public class ProjectStructureConfigurable extends BaseConfigurable implements Se
toolbar
.
setTargetComponent
(
myComponent
);
myToolbarComponent
=
toolbar
.
getComponent
();
if
(
Registry
.
is
(
"ide.new.project.settings"
))
{
left
.
setBackground
(
new
Color
(
0xD2D6DD
));
left
.
setBackground
(
UIUtil
.
getSidePanelColor
(
));
}
else
{
left
.
add
(
myToolbarComponent
,
BorderLayout
.
NORTH
);
}
...
...
This diff is collapsed.
Click to expand it.
java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/SidePanel.java
+
3
-
2
View file @
e418bb2a
...
...
@@ -26,6 +26,7 @@ import com.intellij.ui.navigation.History;
import
com.intellij.ui.navigation.Place
;
import
com.intellij.ui.popup.list.GroupedItemsListRenderer
;
import
com.intellij.util.ui.EmptyIcon
;
import
com.intellij.util.ui.UIUtil
;
import
org.jetbrains.annotations.NotNull
;
import
javax.swing.*
;
...
...
@@ -58,7 +59,7 @@ public class SidePanel extends JPanel {
myModel
=
new
DefaultListModel
();
myList
=
new
JBList
(
myModel
);
if
(
Registry
.
is
(
"ide.new.project.settings"
))
{
myList
.
setBackground
(
new
Color
(
0xD2D6DD
));
myList
.
setBackground
(
UIUtil
.
getSidePanelColor
(
));
myList
.
setBorder
(
new
EmptyBorder
(
5
,
0
,
0
,
0
));
}
final
ListItemDescriptor
descriptor
=
new
ListItemDescriptor
()
{
...
...
@@ -109,7 +110,7 @@ public class SidePanel extends JPanel {
@Override
protected
Color
getBackground
()
{
return
Registry
.
is
(
"ide.new.project.settings"
)
?
new
Color
(
0xD2D6DD
)
:
super
.
getBackground
();
return
Registry
.
is
(
"ide.new.project.settings"
)
?
UIUtil
.
getSidePanelColor
(
)
:
super
.
getBackground
();
}
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help