mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-148224 Update license info card design
According to the new mockups, use radio buttons instead of multiple Activate buttons. Remove the separators. GitOrigin-RevId: c6d74699077340eb90b06ad3c241f447c56b5682
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8f9c8fd0a0
commit
31144276f4
+6
@@ -6,6 +6,7 @@ import com.intellij.ui.scale.JBUIScale;
|
||||
import com.intellij.util.ui.EmptyIcon;
|
||||
import com.intellij.util.ui.JBUI;
|
||||
import com.intellij.util.ui.LafIconLookup;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -77,6 +78,11 @@ public class DarculaRadioButtonUI extends MetalRadioButtonUI {
|
||||
paintIcon(c, g, layout.iconRect);
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
public @NotNull Rectangle getTextRect(@NotNull JRadioButton b) {
|
||||
return createLayout(b, b.getSize()).textRect;
|
||||
}
|
||||
|
||||
protected boolean removeInsetsBeforeLayout(AbstractButton b) {
|
||||
return !(b.getBorder() instanceof DarculaRadioButtonBorder);
|
||||
}
|
||||
|
||||
@@ -869,8 +869,7 @@
|
||||
"termsAndConditionsForeground": "Gray7",
|
||||
"separatorColor": "Gray3",
|
||||
"LicenseList": {
|
||||
"licenseDetailsForeground": "Gray9",
|
||||
"separatorColor": "Gray6"
|
||||
"licenseDetailsForeground": "Gray9"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -920,8 +920,7 @@
|
||||
"termsAndConditionsForeground": "Gray8",
|
||||
"separatorColor": "Gray12",
|
||||
"LicenseList": {
|
||||
"licenseDetailsForeground": "Gray6",
|
||||
"separatorColor": "Gray9"
|
||||
"licenseDetailsForeground": "Gray6"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -2518,10 +2518,6 @@
|
||||
{
|
||||
"key": "LicenseDialog.LicenseList.licenseDetailsForeground",
|
||||
"since": "2024.2"
|
||||
},
|
||||
{
|
||||
"key": "LicenseDialog.LicenseList.separatorColor",
|
||||
"since": "2024.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -2456,16 +2456,9 @@ public final class JBUI {
|
||||
private static final @NotNull Color LICENSE_DETAILS_COLOR =
|
||||
JBColor.namedColor("LicenseDialog.LicenseList.licenseDetailsForeground", 0xC9CCD6, 0x9DA0A8);
|
||||
|
||||
private static final @NotNull Color SEPARATOR_COLOR =
|
||||
JBColor.namedColor("LicenseDialog.LicenseList.separatorColor", 0x818594, 0x6F737A);
|
||||
|
||||
public static @NotNull Color getLicenseDetailsColor() {
|
||||
return LICENSE_DETAILS_COLOR;
|
||||
}
|
||||
|
||||
public static @NotNull Color getSeparatorColor() {
|
||||
return SEPARATOR_COLOR;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user