diff --git a/platform/platform-impl/src/com/intellij/ui/AppUIUtil.java b/platform/platform-impl/src/com/intellij/ui/AppUIUtil.java
index 2ffcc3c422ec..ab97eb8e8fab 100644
--- a/platform/platform-impl/src/com/intellij/ui/AppUIUtil.java
+++ b/platform/platform-impl/src/com/intellij/ui/AppUIUtil.java
@@ -456,6 +456,10 @@ public class AppUIUtil {
public static void targetToDevice(@NotNull Component comp, @Nullable Component target) {
if (comp.isShowing()) return;
GraphicsConfiguration gc = target != null ? target.getGraphicsConfiguration() : null;
+ setGraphicsConfiguration(comp, gc);
+ }
+
+ public static void setGraphicsConfiguration(@NotNull Component comp, @Nullable GraphicsConfiguration gc) {
AWTAccessor.getComponentAccessor().setGraphicsConfiguration(comp, gc);
}
}
\ No newline at end of file
diff --git a/platform/platform-impl/src/com/intellij/ui/layout/SpacingConfiguration.kt b/platform/platform-impl/src/com/intellij/ui/layout/SpacingConfiguration.kt
index af92670bd5b1..33700e3e42ad 100644
--- a/platform/platform-impl/src/com/intellij/ui/layout/SpacingConfiguration.kt
+++ b/platform/platform-impl/src/com/intellij/ui/layout/SpacingConfiguration.kt
@@ -19,7 +19,7 @@ fun createIntelliJSpacingConfiguration(): SpacingConfiguration {
return object : SpacingConfiguration {
override val labelColumnVerticalTopGap = JBUI.scale(labelColumnVerticalTopGap)
- override val isCompensateVisualPaddings = SystemInfoRt.isMac || isUnderWin10LookAndFeel
+ override val isCompensateVisualPaddings = !SystemInfoRt.isLinux
override val horizontalGap = JBUI.scale(8)
override val verticalGap = JBUI.scale(5 * 2)
diff --git a/platform/platform-tests/testData/ui/layout/Darcula/align fields in the nested grid.yml b/platform/platform-tests/testData/ui/layout/Darcula/align fields in the nested grid.yml
index dc71a55517ba..23ca650a6a5e 100644
--- a/platform/platform-tests/testData/ui/layout/Darcula/align fields in the nested grid.yml
+++ b/platform/platform-tests/testData/ui/layout/Darcula/align fields in the nested grid.yml
@@ -12,7 +12,6 @@ layoutConstraints:
- {horizontal: true, unit: 0, value: 0.0}
- {horizontal: false, unit: 0, value: 0.0}
- {horizontal: true, unit: 0, value: 0.0}
- visualPadding: false
rowConstraints:
constraints:
- align: {horizontal: false, unit: 6, value: 0.0}
@@ -41,7 +40,7 @@ componentConstrains:
'Database:':
horizontal:
gapBefore:
- min: &id006 {horizontal: true, value: 23.0}
+ min: &id006 {horizontal: true, value: 21.0}
preferred: *id006
vertical:
gapBefore:
@@ -61,7 +60,7 @@ componentConstrains:
'Master Password:':
horizontal:
gapBefore:
- min: &id009 {horizontal: true, value: 23.0}
+ min: &id009 {horizontal: true, value: 21.0}
preferred: *id009
vertical:
gapBefore:
@@ -78,18 +77,18 @@ componentConstrains:
spanX: 2097051
wrap: true
cellBounds:
-- [0, 0, 480, 23]
-- [0, 33, 115, 32]
-- [121, 33, 351, 32]
-- [121, 33, 351, 32]
-- [0, 75, 115, 30]
-- [121, 75, 359, 30]
-- [121, 111, 359, 16]
+- [0, 0, 480, 24]
+- [0, 34, 113, 24]
+- [119, 34, 353, 24]
+- [119, 34, 353, 24]
+- [0, 68, 113, 25]
+- [119, 68, 361, 25]
+- [119, 99, 361, 16]
componentBounds:
- In KeePass: [0, 0, 78, 23]
- 'Database:': [23, 41, 51, 16]
- 'JTextField #2': [121, 33, 326, 32]
- 'JLabel #3': [451, 41, 21, 16]
- 'Master Password:': [23, 81, 92, 16]
- 'JBPasswordField #5': [121, 75, 250, 30]
- Stored using weak encryption.: [122, 111, 159, 16]
+ In KeePass: [-2, 0, 78, 24]
+ 'Database:': [21, 38, 51, 16]
+ 'JTextField #2': [117, 32, 332, 28]
+ 'JLabel #3': [451, 38, 21, 16]
+ 'Master Password:': [21, 72, 92, 16]
+ 'JBPasswordField #5': [117, 67, 254, 28]
+ Stored using weak encryption.: [120, 99, 159, 16]
diff --git a/platform/platform-tests/testData/ui/layout/Darcula/align fields.yml b/platform/platform-tests/testData/ui/layout/Darcula/align fields.yml
index fcbe63484296..3d923fa49677 100644
--- a/platform/platform-tests/testData/ui/layout/Darcula/align fields.yml
+++ b/platform/platform-tests/testData/ui/layout/Darcula/align fields.yml
@@ -12,7 +12,6 @@ layoutConstraints:
- {horizontal: true, unit: 0, value: 0.0}
- {horizontal: false, unit: 0, value: 0.0}
- {horizontal: true, unit: 0, value: 0.0}
- visualPadding: false
rowConstraints:
constraints:
- align: {horizontal: false, unit: 6, value: 0.0}
@@ -47,11 +46,11 @@ componentConstrains:
spanX: 2097051
wrap: true
cellBounds:
-- [0, 0, 124, 22]
-- [130, 0, 350, 22]
-- [0, 32, 124, 32]
-- [130, 32, 350, 32]
+- [0, 0, 124, 24]
+- [130, 0, 350, 24]
+- [0, 34, 124, 24]
+- [130, 34, 350, 24]
componentBounds:
Create Android module: [0, 4, 124, 16]
- 'Android module name:': [0, 36, 123, 16]
- 'JTextField #3': [130, 32, 350, 32]
+ 'Android module name:': [0, 38, 123, 16]
+ 'JTextField #3': [128, 32, 354, 28]
diff --git a/platform/platform-tests/testData/ui/layout/Darcula/cell.yml b/platform/platform-tests/testData/ui/layout/Darcula/cell.yml
index 53452f2c7b3c..7c38ed00992b 100644
--- a/platform/platform-tests/testData/ui/layout/Darcula/cell.yml
+++ b/platform/platform-tests/testData/ui/layout/Darcula/cell.yml
@@ -12,7 +12,6 @@ layoutConstraints:
- {horizontal: true, unit: 0, value: 0.0}
- {horizontal: false, unit: 0, value: 0.0}
- {horizontal: true, unit: 0, value: 0.0}
- visualPadding: false
rowConstraints:
constraints:
- align: {horizontal: false, unit: 6, value: 0.0}
@@ -53,7 +52,7 @@ componentConstrains:
Use File -> Settings Repository... to configure:
horizontal:
gapBefore:
- min: &id008 {horizontal: true, value: 4.0}
+ min: &id008 {horizontal: true, value: 1.0}
preferred: *id008
skip: 1
spanX: 2097051
@@ -65,14 +64,14 @@ componentConstrains:
vertical: {grow: 100.0}
wrap: true
cellBounds:
-- [0, 0, 59, 30]
-- [65, 0, 407, 30]
-- [65, 0, 407, 30]
-- [65, 36, 415, 16]
-- [0, 62, 480, 248]
+- [0, 0, 59, 24]
+- [65, 0, 407, 24]
+- [65, 0, 407, 24]
+- [65, 30, 415, 16]
+- [0, 56, 480, 254]
componentBounds:
'Repository:': [0, 4, 59, 16]
- 'ComboBox #1': [65, 0, 41, 30]
- Delete: [114, 0, 78, 30]
- Use File -> Settings Repository... to configure: [69, 36, 237, 16]
- 'JBScrollPane #4': [0, 62, 480, 248]
+ 'ComboBox #1': [62, -3, 41, 30]
+ Delete: [105, -3, 78, 30]
+ Use File -> Settings Repository... to configure: [66, 30, 237, 16]
+ 'JBScrollPane #4': [0, 56, 480, 254]
diff --git a/platform/platform-tests/testData/ui/layout/Darcula/note row in the dialog.yml b/platform/platform-tests/testData/ui/layout/Darcula/note row in the dialog.yml
index c64b3b4a2c0e..dbbe0a895c07 100644
--- a/platform/platform-tests/testData/ui/layout/Darcula/note row in the dialog.yml
+++ b/platform/platform-tests/testData/ui/layout/Darcula/note row in the dialog.yml
@@ -12,7 +12,6 @@ layoutConstraints:
- {horizontal: true, unit: 0, value: 0.0}
- {horizontal: false, unit: 0, value: 0.0}
- {horizontal: true, unit: 0, value: 0.0}
- visualPadding: false
rowConstraints:
constraints:
- align: {horizontal: false, unit: 6, value: 0.0}
@@ -65,14 +64,14 @@ componentConstrains:
wrap: true
cellBounds:
- [0, 0, 480, 62]
-- [0, 72, 83, 30]
-- [89, 72, 391, 30]
-- [89, 112, 391, 22]
-- [0, 144, 480, 52]
+- [0, 72, 83, 25]
+- [89, 72, 391, 25]
+- [89, 107, 391, 24]
+- [0, 141, 480, 52]
componentBounds:
Profiler requires access to the kernel-level API. Enter the sudo password to allow this.: [
0, 10, 242, 32]
- 'Sudo password:': [0, 78, 83, 16]
- 'JPasswordField #2': [89, 72, 250, 30]
- !!binary "G1JlbWVtYmVy": [89, 112, 89, 22]
- 'SimpleColoredComponent #4': [0, 156, 271, 20]
+ 'Sudo password:': [0, 76, 83, 16]
+ 'JPasswordField #2': [87, 71, 254, 28]
+ !!binary "G1JlbWVtYmVy": [87, 107, 89, 24]
+ 'SimpleColoredComponent #4': [0, 153, 271, 20]
diff --git a/platform/platform-tests/testData/ui/layout/Darcula/visual paddings.yml b/platform/platform-tests/testData/ui/layout/Darcula/visual paddings.yml
index 335d2891af0e..33aac9baff37 100644
--- a/platform/platform-tests/testData/ui/layout/Darcula/visual paddings.yml
+++ b/platform/platform-tests/testData/ui/layout/Darcula/visual paddings.yml
@@ -12,7 +12,6 @@ layoutConstraints:
- {horizontal: true, unit: 0, value: 0.0}
- {horizontal: false, unit: 0, value: 0.0}
- {horizontal: true, unit: 0, value: 0.0}
- visualPadding: false
rowConstraints:
constraints:
- align: {horizontal: false, unit: 6, value: 0.0}
@@ -151,7 +150,7 @@ componentConstrains:
'Scroll pane:':
vertical:
gapBefore:
- max: &id021 {horizontal: false, value: 4.0}
+ max: &id021 {horizontal: false, value: 1.0}
min: *id021
preferred: *id021
'JBScrollPane #26':
@@ -161,57 +160,57 @@ componentConstrains:
vertical: {grow: 100.0}
wrap: true
cellBounds:
-- [0, 0, 108, 32]
-- [114, 0, 529, 32]
-- [0, 42, 108, 30]
-- [114, 42, 529, 30]
-- [0, 82, 108, 30]
-- [114, 82, 529, 30]
-- [0, 122, 108, 30]
-- [114, 122, 529, 30]
-- [0, 162, 108, 30]
-- [114, 162, 529, 30]
-- [0, 202, 108, 22]
-- [114, 202, 529, 22]
-- [0, 234, 108, 23]
-- [114, 234, 529, 23]
-- [0, 267, 108, 30]
-- [114, 267, 529, 30]
-- [0, 307, 108, 30]
-- [114, 307, 529, 30]
-- [0, 347, 108, 32]
-- [114, 347, 521, 32]
-- [114, 347, 521, 32]
-- [114, 347, 521, 32]
-- [114, 347, 521, 32]
-- [114, 347, 521, 32]
-- [114, 347, 521, 32]
-- [0, 389, 108, 20]
-- [114, 389, 529, 20]
+- [0, 0, 108, 24]
+- [114, 0, 509, 24]
+- [0, 34, 108, 24]
+- [114, 34, 509, 24]
+- [0, 68, 108, 24]
+- [114, 68, 509, 24]
+- [0, 102, 108, 24]
+- [114, 102, 509, 24]
+- [0, 136, 108, 24]
+- [114, 136, 509, 24]
+- [0, 170, 108, 24]
+- [114, 170, 509, 24]
+- [0, 204, 108, 24]
+- [114, 204, 509, 24]
+- [0, 238, 108, 24]
+- [114, 238, 509, 24]
+- [0, 272, 108, 24]
+- [114, 272, 509, 24]
+- [0, 306, 108, 24]
+- [114, 306, 501, 24]
+- [114, 306, 501, 24]
+- [114, 306, 501, 24]
+- [114, 306, 501, 24]
+- [114, 306, 501, 24]
+- [114, 306, 501, 24]
+- [0, 340, 108, 20]
+- [114, 340, 509, 20]
componentBounds:
'Text field:': [0, 4, 51, 16]
- 'JTextField #1': [114, 0, 529, 32]
- 'Password:': [0, 46, 53, 16]
- 'JPasswordField #3': [114, 42, 250, 30]
- 'Combobox:': [0, 86, 63, 16]
- 'JComboBox #5': [114, 82, 529, 30]
- 'Combobox Editable:': [0, 126, 108, 16]
- 'JComboBox #7': [114, 122, 529, 30]
- 'Button:': [0, 166, 39, 16]
- label: [114, 234, 48, 23]
- 'CheckBox:': [0, 206, 56, 16]
- enabled: [114, 202, 65, 22]
- 'RadioButton:': [0, 238, 69, 16]
- 'Spinner:': [0, 271, 43, 16]
- 'JBIntSpinner #15': [114, 267, 72, 30]
- 'Text with browse:': [0, 311, 92, 16]
- 'TextFieldWithHistoryWithBrowseButton #17': [114, 307, 529, 30]
- 'All:': [0, 351, 17, 16]
- 'JTextField #19': [114, 347, 40, 32]
- 'JPasswordField #20': [162, 347, 250, 30]
- 'JComboBox #21': [420, 347, 50, 30]
- b: [478, 347, 78, 30]
- c: [564, 347, 29, 22]
- rb: [601, 347, 34, 23]
- 'Scroll pane:': [0, 393, 61, 16]
- 'JBScrollPane #26': [114, 389, 529, 20]
+ 'JTextField #1': [112, -2, 513, 28]
+ 'Password:': [0, 38, 53, 16]
+ 'JPasswordField #3': [112, 32, 254, 28]
+ 'Combobox:': [0, 72, 63, 16]
+ 'JComboBox #5': [111, 65, 515, 30]
+ 'Combobox Editable:': [0, 106, 108, 16]
+ 'JComboBox #7': [111, 99, 515, 30]
+ 'Button:': [0, 140, 39, 16]
+ label: [112, 204, 48, 24]
+ 'CheckBox:': [0, 174, 56, 16]
+ enabled: [112, 170, 65, 24]
+ 'RadioButton:': [0, 208, 69, 16]
+ 'Spinner:': [0, 242, 43, 16]
+ 'JBIntSpinner #15': [111, 235, 72, 30]
+ 'Text with browse:': [0, 276, 92, 16]
+ 'TextFieldWithHistoryWithBrowseButton #17': [111, 269, 515, 30]
+ 'All:': [0, 310, 17, 16]
+ 'JTextField #19': [112, 304, 40, 28]
+ 'JPasswordField #20': [156, 304, 254, 28]
+ 'JComboBox #21': [413, 303, 50, 30]
+ b: [465, 303, 78, 30]
+ c: [546, 306, 29, 24]
+ rb: [581, 306, 34, 24]
+ 'Scroll pane:': [0, 341, 61, 16]
+ 'JBScrollPane #26': [114, 340, 509, 20]
diff --git a/platform/platform-tests/testData/ui/layout/Darcula/win/align fields in the nested grid.svg b/platform/platform-tests/testData/ui/layout/Darcula/win/align fields in the nested grid.svg
index 3f9dc5621fa1..cf9d5f678e81 100644
--- a/platform/platform-tests/testData/ui/layout/Darcula/win/align fields in the nested grid.svg
+++ b/platform/platform-tests/testData/ui/layout/Darcula/win/align fields in the nested grid.svg
@@ -11,13 +11,13 @@
-
+
-
+
-
+
@@ -26,56 +26,56 @@
-
+
-
+
-
+
-
+
Stored using weak encryption.
-
-
+
+
-
-
+
+
-
-
+
+
-
+
Master Password:
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
Database:
-
-
-
-
- In KeePass
+
+
+
+
+ In KeePass
diff --git a/platform/platform-tests/testData/ui/layout/Darcula/win/align fields.svg b/platform/platform-tests/testData/ui/layout/Darcula/win/align fields.svg
index a4f61a4490e1..3f7d25fb0b6a 100644
--- a/platform/platform-tests/testData/ui/layout/Darcula/win/align fields.svg
+++ b/platform/platform-tests/testData/ui/layout/Darcula/win/align fields.svg
@@ -8,19 +8,19 @@
-
+
-
+
-
+
-
+
@@ -29,26 +29,26 @@
-
-
+
+
-
-
+
+
-
- input
+
+ input
-
-
+
+
-
+
Android module name:
-
-
-
-
- Android module name:
+
+
+
+
+ Android module name:
Create Android module
diff --git a/platform/platform-tests/testData/ui/layout/Darcula/win/cell.svg b/platform/platform-tests/testData/ui/layout/Darcula/win/cell.svg
index 3746aec9b075..e395c59f2db9 100644
--- a/platform/platform-tests/testData/ui/layout/Darcula/win/cell.svg
+++ b/platform/platform-tests/testData/ui/layout/Darcula/win/cell.svg
@@ -12,22 +12,22 @@
-
+
-
+
-
+
-
+
-
+
@@ -39,42 +39,42 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
+
Use File -> Settings Repository... to configure
-
+
-
+
-
+
Delete
-
+
-
+
-
+
-
+
-
+
diff --git a/platform/platform-tests/testData/ui/layout/Darcula/win/note row in the dialog.svg b/platform/platform-tests/testData/ui/layout/Darcula/win/note row in the dialog.svg
index eaae83d0424e..cb8efce93163 100644
--- a/platform/platform-tests/testData/ui/layout/Darcula/win/note row in the dialog.svg
+++ b/platform/platform-tests/testData/ui/layout/Darcula/win/note row in the dialog.svg
@@ -11,13 +11,13 @@
-
+
-
+
-
+
@@ -29,28 +29,28 @@
-
+
Should be an empty row above as a gap.
Click me
.
-
-
-
-
- &Remember
+
+
+
+
+ &Remember
-
-
+
+
-
-
+
+
-
-
+
+
-
+
Sudo password:
diff --git a/platform/platform-tests/testData/ui/layout/Darcula/win/visual paddings.svg b/platform/platform-tests/testData/ui/layout/Darcula/win/visual paddings.svg
index 86a6a13b7fc4..ef4ce5e4aa36 100644
--- a/platform/platform-tests/testData/ui/layout/Darcula/win/visual paddings.svg
+++ b/platform/platform-tests/testData/ui/layout/Darcula/win/visual paddings.svg
@@ -1,5 +1,5 @@
-