Skip to content

Commit

Permalink
fix: hide rendering enigne choice
Browse files Browse the repository at this point in the history
  • Loading branch information
zsliu98 committed Jan 9, 2025
1 parent c92c61c commit 4c61fca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
6 changes: 3 additions & 3 deletions source/panel/main_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ namespace zlPanel {
}

void MainPanel::parentHierarchyChanged() {
if (const auto peer = getPeer()) {
peer->setCurrentRenderingEngine(uiBase.getRenderingEngine());
}
// if (const auto peer = getPeer()) {
// peer->setCurrentRenderingEngine(uiBase.getRenderingEngine());
// }
}

void MainPanel::handleAsyncUpdate() {
Expand Down
11 changes: 2 additions & 9 deletions source/panel/ui_setting_panel/other_ui_setting_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ namespace zlPanel {
renderingEngineLabel.setText("Rendering Engine", juce::dontSendNotification);
renderingEngineLabel.setJustificationType(juce::Justification::centredRight);
renderingEngineLabel.setLookAndFeel(&nameLAF);
addAndMakeVisible(renderingEngineLabel);
addAndMakeVisible(renderingEngineBox);
// addAndMakeVisible(renderingEngineLabel);
// addAndMakeVisible(renderingEngineBox);
refreshRateLabel.setText("Refresh Rate", juce::dontSendNotification);
refreshRateLabel.setJustificationType(juce::Justification::centredRight);
refreshRateLabel.setLookAndFeel(&nameLAF);
Expand Down Expand Up @@ -98,13 +98,6 @@ namespace zlPanel {

void OtherUISettingPanel::resized() {
auto bound = getLocalBounds().toFloat(); {
bound.removeFromTop(uiBase.getFontSize());
auto localBound = bound.removeFromTop(uiBase.getFontSize() * 3);
renderingEngineLabel.setBounds(localBound.removeFromLeft(bound.getWidth() * .3f).toNearestInt());
localBound.removeFromLeft(bound.getWidth() * .05f);
const auto sWidth = (bound.getWidth() * .5f - uiBase.getFontSize() * 2.f) * 0.3f;
renderingEngineBox.setBounds(localBound.removeFromLeft(sWidth).toNearestInt());
} {
bound.removeFromTop(uiBase.getFontSize());
auto localBound = bound.removeFromTop(uiBase.getFontSize() * 3);
refreshRateLabel.setBounds(localBound.removeFromLeft(bound.getWidth() * .3f).toNearestInt());
Expand Down

0 comments on commit 4c61fca

Please sign in to comment.