mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add link to help article about color blindness (move to right)
This commit is contained in:
@@ -22,7 +22,6 @@ import com.intellij.ui.components.labels.SwingActionLink;
|
||||
import com.intellij.ui.components.panels.HorizontalLayout;
|
||||
import com.intellij.util.ui.JBUI;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.event.ActionEvent;
|
||||
import javax.swing.*;
|
||||
import javax.swing.event.ChangeEvent;
|
||||
@@ -37,21 +36,17 @@ final class ColorBlindnessPanel extends JPanel implements ChangeListener {
|
||||
private ColorBlindness myBlindness;
|
||||
|
||||
public ColorBlindnessPanel() {
|
||||
super(new BorderLayout());
|
||||
super(new HorizontalLayout(JBUI.scale(10)));
|
||||
add(HorizontalLayout.LEFT, myCheckBox);
|
||||
add(HorizontalLayout.LEFT, myComboBox);
|
||||
|
||||
JPanel panel = new JPanel(new HorizontalLayout(JBUI.scale(10)));
|
||||
panel.add(HorizontalLayout.LEFT, myCheckBox);
|
||||
panel.add(HorizontalLayout.LEFT, myComboBox);
|
||||
add(BorderLayout.CENTER, panel);
|
||||
|
||||
JLabel label = new SwingActionLink(new AbstractAction("How it works") {
|
||||
JLabel label = new SwingActionLink(new AbstractAction(UIBundle.message("color.blindness.link.to.help")) {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent event) {
|
||||
HelpManager.getInstance().invokeHelp("Colorblind_Settings");
|
||||
}
|
||||
});
|
||||
label.setBorder(JBUI.Borders.emptyLeft(26));
|
||||
add(BorderLayout.SOUTH, label);
|
||||
add(HorizontalLayout.LEFT, label);
|
||||
|
||||
myCheckBox.setSelected(false);
|
||||
myCheckBox.addChangeListener(this);
|
||||
|
||||
@@ -168,10 +168,11 @@ tool.window.quick.access.message=Hover over the icon below to access tool window
|
||||
|
||||
got.it=Got it!
|
||||
|
||||
color.blindness.checkbox.text=Adjust colors for red-green vision deficiency (protanopia and deuteranopia)
|
||||
color.blindness.checkbox.text=Adjust colors for red-green vision deficiency (protanopia, deuteranopia)
|
||||
# define at least one name to show checkbox
|
||||
# define more that one name to show combobox
|
||||
color.blindness.protanopia.name=
|
||||
color.blindness.deuteranopia.name=Deuteranopia (green)
|
||||
color.blindness.tritanopia.name=
|
||||
color.blindness.achromatopsia.name=
|
||||
color.blindness.link.to.help=How it works
|
||||
|
||||
Reference in New Issue
Block a user