Skip to content

Commit

Permalink
Use RobotoMedium for all non Value Label text
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Aug 6, 2023
1 parent 6bcf63b commit b0f07e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ set_target_properties("${PROJECT_NAME}" PROPERTIES FOLDER "")
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "" FILES ${SourceFiles})

set(AssetFiles
src/gui/assets/fonts/Montserrat-Medium.ttf
src/gui/assets/fonts/Roboto-Medium.ttf
src/gui/assets/fonts/RobotoMono-Medium.ttf
src/gui/assets/images/logo_218x40.svg
Expand Down
6 changes: 3 additions & 3 deletions libs/tote_bag/juce_gui/lookandfeel/LookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void LookAndFeel::drawRotarySlider (juce::Graphics& g,
juce::Font LookAndFeel::getTextButtonFont (juce::TextButton&, int buttonHeight)
{
const auto fontHeight = juce::jmax (7.0f, buttonHeight * 0.8f);
return fontHolder.getFont ("MontserratMedium_ttf").withHeight (fontHeight);
return fontHolder.getFont ("RobotoMedium_ttf").withHeight (fontHeight);
}

juce::Font LookAndFeel::getLabelFont (juce::Label& l)
Expand Down Expand Up @@ -359,7 +359,7 @@ void LookAndFeel::drawComboBox (juce::Graphics& g,
const auto boxBounds = box.getLocalBounds();

const auto fontHeight = juce::jmax (7.0f, height * 0.6f);
g.setFont (fontHolder.getFont ("MontserratMedium_ttf").withHeight (fontHeight));
g.setFont (fontHolder.getFont ("RobotoMedium_ttf").withHeight (fontHeight));

g.setColour (box.findColour (juce::ComboBox::backgroundColourId));

Expand Down Expand Up @@ -392,7 +392,7 @@ void LookAndFeel::drawPopupMenuItem (juce::Graphics& g,
g.setColour (myTextColour);

auto fHeight = juce::jmax (7.0f, r.getHeight() * 0.6f);
g.setFont (fontHolder.getFont ("MontserratMedium_ttf").withHeight (fHeight));
g.setFont (fontHolder.getFont ("RobotoMedium_ttf").withHeight (fHeight));

r.setLeft (10);
r.setY (1);
Expand Down
Binary file removed src/gui/assets/fonts/Montserrat-Medium.ttf
Binary file not shown.

0 comments on commit b0f07e2

Please sign in to comment.