mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Introjucer: minor appearance tweaks.
This commit is contained in:
parent
b0b6a7ca25
commit
c75abb51c4
4 changed files with 22 additions and 11 deletions
|
|
@ -146,7 +146,7 @@ void ProjectContentComponent::paintOverChildren (Graphics& g)
|
|||
if (resizerBar != nullptr)
|
||||
{
|
||||
const int shadowSize = 15;
|
||||
const int x = resizerBar->getRight();
|
||||
const int x = resizerBar->getX();
|
||||
|
||||
ColourGradient cg (Colours::black.withAlpha (0.25f), (float) x, 0,
|
||||
Colours::transparentBlack, (float) (x - shadowSize), 0, false);
|
||||
|
|
@ -166,7 +166,7 @@ void ProjectContentComponent::resized()
|
|||
treeViewTabs.setBounds (r.removeFromLeft (treeViewTabs.getWidth()));
|
||||
|
||||
if (resizerBar != nullptr)
|
||||
resizerBar->setBounds (r.removeFromLeft (4));
|
||||
resizerBar->setBounds (r.withWidth (4));
|
||||
|
||||
if (contentView != nullptr)
|
||||
contentView->setBounds (r);
|
||||
|
|
@ -205,7 +205,7 @@ void ProjectContentComponent::setProject (Project* newProject)
|
|||
settings.setValue ("lastTab", treeViewTabs.getCurrentTabName());
|
||||
}
|
||||
|
||||
treeViewTabs.clearTabs();
|
||||
deleteProjectTabs();
|
||||
project = newProject;
|
||||
|
||||
if (project != nullptr)
|
||||
|
|
@ -232,6 +232,7 @@ void ProjectContentComponent::setProject (Project* newProject)
|
|||
|
||||
addAndMakeVisible (resizerBar = new ResizableEdgeComponent (&treeViewTabs, &treeSizeConstrainer,
|
||||
ResizableEdgeComponent::rightEdge));
|
||||
resizerBar->setAlwaysOnTop (true);
|
||||
|
||||
project->addChangeListener (this);
|
||||
|
||||
|
|
@ -255,6 +256,11 @@ void ProjectContentComponent::createProjectTabs()
|
|||
treeViewTabs.addTab ("Config", tabColour, new ConfigTreeTab (*project), true);
|
||||
}
|
||||
|
||||
void ProjectContentComponent::deleteProjectTabs()
|
||||
{
|
||||
treeViewTabs.clearTabs();
|
||||
}
|
||||
|
||||
TreeView* ProjectContentComponent::getFilesTreeView() const
|
||||
{
|
||||
FileTreeTab* ft = dynamic_cast<FileTreeTab*> (treeViewTabs.getTabContentComponent (0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue