Skip to content

Commit

Permalink
Traktor: Added a small icon to the caption bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Jun 4, 2024
1 parent ae323b3 commit 81ce615
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/Editor/App/EditorForm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ bool EditorForm::create(const CommandLine& cmdLine)
m_menuBar = new ui::CaptionBar();
m_menuBar->create(this);
m_menuBar->addEventHandler< ui::ToolBarButtonClickEvent >(this, &EditorForm::eventMenuClick);
m_menuBar->addImage(new ui::StyleBitmap(L"Editor.IconSmall"));
m_menuBar->addItem(new ui::ToolBarButton(L"Traktor", 0, ui::Command()));

m_menuItemRecent = new ui::MenuItem(i18n::Text(L"MENU_FILE_OPEN_RECENT_WORKSPACE"));

Expand Down
9 changes: 9 additions & 0 deletions resources/runtime/themes/Shared/Images/Editor/IconSmall.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions resources/runtime/themes/Shared/StyleSheet.xss
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
<first>Editor.Icon</first>
<second>$(Images.Path)/Editor/Icon.svg</second>
</item>
<item>
<first>Editor.IconSmall</first>
<second>$(Images.Path)/Editor/IconSmall.svg</second>
</item>
<item>
<first>Editor.Log.Error</first>
<second>$(Images.Path)/Editor/LogError.svg</second>
Expand Down

0 comments on commit 81ce615

Please sign in to comment.