Skip to content

Commit

Permalink
✨ [View] Added _is_output_view mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed May 16, 2024
1 parent 57b05da commit 54c7b96
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cool
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

## 🐣beta-18 WIP

- ✨ The Output window now doesn't have a title bar by default

## 🐣beta-17

- ✨ Greatly improved video import: we now support videos with transparency, and GIFs
Expand Down
9 changes: 5 additions & 4 deletions src/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ namespace Lab {
App::App(Cool::WindowManager& windows, Cool::ViewsManager& views)
: _main_window{windows.main_window()}
, _output_view{views.make_view<Cool::RenderView>(Cool::ViewCreationParams{
.name = Cool::icon_fmt("Output", ICOMOON_IMAGE),
.is_closable = true,
.start_open = false,
.name = Cool::icon_fmt("Output", ICOMOON_IMAGE),
.is_output_view = true,
.is_closable = true,
.start_open = false,
})}
, _preview_view{views.make_view<Cool::ForwardingOrRenderView>(
_output_view,
Expand Down Expand Up @@ -523,7 +524,7 @@ void App::commands_menu()
if (ImGui::Selectable(ICOMOON_MUSIC " Open Audio config"))
_project.audio.open_imgui_window();
if (ImGui::Selectable(ICOMOON_IMAGE " Open output window"))
_output_view.open();
_output_view.toggle_open_close();
if (ImGui::Selectable(ICOMOON_FOLDER_OPEN " Open user-data folder"))
Cool::open(Cool::Path::user_data().string().c_str());
ImGui::EndMenu();
Expand Down

0 comments on commit 54c7b96

Please sign in to comment.