Skip to content

Commit

Permalink
UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielsherry committed Jul 28, 2024
1 parent 4a531b8 commit ced8e02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,13 @@ public void addSpacer() {
@Override
public void paintBackground(Graphics2D g) {

Color highlight = new Color(0x0A000000, true);

if (block == null) {
g.setColor(bg);
g.fillRoundRect(0, 0, getWidth()-1, getHeight()-1, 0, 0);
if (hover && isEnabled()) {
g.setColor(new Color(0x08000000, true));
g.setColor(highlight);
g.fillRoundRect(0, 0, getWidth()-1, getHeight()-1, 0, 0);
}
g.setColor(borderAlpha);
Expand Down Expand Up @@ -114,7 +116,7 @@ public void paintBackground(Graphics2D g) {
area.add(new Area(outline));
}

g.setColor(new Color(0x08000000, true));
g.setColor(highlight);
g.fill(area);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public void componentResized(ComponentEvent e) {

sidebarTabs.setBorder(new MatteBorder(0, 0, 0, 1, Stratus.getTheme().getWidgetBorder()));
ClearPanel split = new ClearPanel(new BorderLayout());
sidebarTabs.setPreferredSize(new Dimension(230, sidebarTabs.getPreferredSize().height));
sidebarTabs.setPreferredSize(new Dimension(250, sidebarTabs.getPreferredSize().height));
split.add(blankCanvas, BorderLayout.CENTER);

split.setBorder(Spacing.bNone());
Expand Down

0 comments on commit ced8e02

Please sign in to comment.