Skip to content

Commit

Permalink
refactor: set to correct font for comment labels
Browse files Browse the repository at this point in the history
  • Loading branch information
lppedd committed Mar 26, 2023
1 parent c2b5c39 commit c7898cd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.lppedd.idea.pomsky.settings;

import com.intellij.openapi.Disposable;
import com.intellij.openapi.ui.panel.ComponentPanelBuilder;
import com.intellij.ui.border.IdeaTitledBorder;
import com.intellij.ui.components.JBCheckBox;
import com.intellij.ui.components.JBLabel;
Expand Down Expand Up @@ -58,10 +59,12 @@ class PomskySettingsComponent {

final var editorPanel = new JBPanel<>(new GridBagLayout());
editorPanel.setBorder(new IdeaTitledBorder("Editor Settings", JBUI.scale(SECTION_INDENT), JBUI.insetsTop(15)));
editorPanel.add(livePreviewCheckbox, editorGb.nextLine().next().insetBottom(4));
editorPanel.add(livePreviewCheckbox, editorGb.nextLine().next().insetBottom(2));

final var commentLabel = new JBLabel("Compile a file on every change");
commentLabel.setForeground(JBUI.CurrentTheme.ContextHelp.FOREGROUND);
commentLabel.setFont(ComponentPanelBuilder.getCommentFont(commentLabel.getFont()));

editorPanel.add(commentLabel, editorGb.nextLine().next().insets(0, SECTION_INDENT + 20, 0, 0));

// Root panel
Expand Down

0 comments on commit c7898cd

Please sign in to comment.