Skip to content

Commit

Permalink
Interlaced VU and some fallout from base font change (#1222)
Browse files Browse the repository at this point in the history
- Interlaced vu in place. Closes #1218
- Some fallout in overpaint and spacing from base font getting
  a bit bigger.
  • Loading branch information
baconpaul authored Aug 30, 2024
1 parent 20b1d26 commit 53e912e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion libs/sst/sst-jucegui
6 changes: 2 additions & 4 deletions src-ui/app/browser-ui/BrowserPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ struct DriveListBoxModel : juce::ListBoxModel
{
if (rowNumber >= 0 && rowNumber < browserPane->roots.size())
{
g.setFont(browserPane->style()->getFont(jcmp::Label::Styles::styleClass,
jcmp::Label::Styles::labelfont));
g.setFont(browserPane->editor->themeApplier.interMediumFor(12));

// TODO: Style all of these
auto textColor =
Expand Down Expand Up @@ -395,8 +394,7 @@ struct DriveFSListBoxRow : public juce::Component
auto width = getWidth();
auto height = getHeight();

g.setFont(browserPane->style()->getFont(jcmp::Label::Styles::styleClass,
jcmp::Label::Styles::labelfont));
g.setFont(browserPane->editor->themeApplier.interMediumFor(12));

// TODO: Style all of these
auto textColor =
Expand Down
8 changes: 4 additions & 4 deletions src-ui/app/shared/HeaderRegion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ void HeaderRegion::resized()

scMenu->setBounds(b.withTrimmedLeft(1148).withWidth(24));

cpuLabel->setBounds(b.withTrimmedLeft(975).withWidth(20).withHeight(14));
ramLabel->setBounds(b.withTrimmedLeft(975).withWidth(20).withHeight(14).translated(0, 14));
cpuLabel->setBounds(b.withTrimmedLeft(962).withWidth(25).withHeight(14));
ramLabel->setBounds(b.withTrimmedLeft(962).withWidth(25).withHeight(14).translated(0, 14));

cpuLevel->setBounds(b.withTrimmedLeft(1000).withWidth(40).withHeight(14));
ramLevel->setBounds(b.withTrimmedLeft(1000).withWidth(40).withHeight(14).translated(0, 14));
cpuLevel->setBounds(b.withTrimmedLeft(992).withWidth(48).withHeight(14));
ramLevel->setBounds(b.withTrimmedLeft(992).withWidth(48).withHeight(14).translated(0, 14));

vuMeter->setBounds(b.withTrimmedLeft(1048).withWidth(96).withHeight(28));
}
Expand Down

0 comments on commit 53e912e

Please sign in to comment.