mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Improve context menu (icons and labels)
This commit is contained in:
@@ -282,7 +282,7 @@ void GeometryView::draw()
|
||||
s->group(mode_)->translation_ = glm::vec3(0.f);
|
||||
s->touch();
|
||||
}
|
||||
else if (ImGui::Selectable( ICON_FA_PERCENTAGE " Original aspect ratio" )){ //ICON_FA_ARROWS_ALT_H
|
||||
else if (ImGui::Selectable( ICON_FA_EXPAND_ALT " Restore aspect ratio" )){
|
||||
s->group(mode_)->scale_.x = s->group(mode_)->scale_.y;
|
||||
s->group(mode_)->scale_.x *= s->group(mode_)->crop_.x / s->group(mode_)->crop_.y;
|
||||
s->touch();
|
||||
|
||||
@@ -118,7 +118,7 @@ void LayerView::draw()
|
||||
}
|
||||
View::need_deep_update_++;
|
||||
}
|
||||
if (ImGui::Selectable( ICON_FA_RULER_HORIZONTAL " Fixed space" )){
|
||||
if (ImGui::Selectable( ICON_FA_RULER_HORIZONTAL " Space equally" )){
|
||||
SourceList dsl = depthSorted(Mixer::selection().getCopy());
|
||||
SourceList::iterator it = dsl.begin();
|
||||
float depth = (*it)->depth();
|
||||
@@ -128,7 +128,7 @@ void LayerView::draw()
|
||||
}
|
||||
View::need_deep_update_++;
|
||||
}
|
||||
if (ImGui::Selectable( ICON_FA_EXCHANGE_ALT " Inverse order" )){
|
||||
if (ImGui::Selectable( ICON_FA_EXCHANGE_ALT " Reverse order" )){
|
||||
SourceList dsl = depthSorted(Mixer::selection().getCopy());
|
||||
SourceList::iterator it = dsl.begin();
|
||||
SourceList::reverse_iterator rit = dsl.rbegin();
|
||||
|
||||
@@ -141,7 +141,7 @@ void MixingView::draw()
|
||||
(*it)->touch();
|
||||
}
|
||||
}
|
||||
if (ImGui::Selectable( ICON_FA_EXPAND_ARROWS_ALT " Expand to borders" )){
|
||||
if (ImGui::Selectable( ICON_FA_EXPAND_ARROWS_ALT " Expand to hide" )){
|
||||
SourceList::iterator it = Mixer::selection().begin();
|
||||
for (; it != Mixer::selection().end(); it++) {
|
||||
(*it)->setAlpha(0.f);
|
||||
|
||||
@@ -838,7 +838,7 @@ void TextureView::draw()
|
||||
s->group(mode_)->translation_ = glm::vec3(0.f);
|
||||
s->touch();
|
||||
}
|
||||
else if (ImGui::Selectable( ICON_FA_PERCENTAGE " Original aspect ratio" )){ //ICON_FA_ARROWS_ALT_H
|
||||
else if (ImGui::Selectable( ICON_FA_EXPAND_ALT " Restore aspect ratio" )){
|
||||
s->group(mode_)->scale_.x = s->group(mode_)->scale_.y;
|
||||
s->group(mode_)->scale_.x *= s->group(mode_)->crop_.x / s->group(mode_)->crop_.y;
|
||||
s->touch();
|
||||
|
||||
@@ -736,6 +736,7 @@
|
||||
#define ICON_FA_DOLLAR_SIGN "\xEF\x85\x95"
|
||||
#define ICON_FA_DUNGEON "\xEF\x9B\x99"
|
||||
#define ICON_FA_COMPRESS "\xEF\x81\xA6"
|
||||
#define ICON_FA_COMPRESS_ALT "\xEF\x90\xA2"
|
||||
#define ICON_FA_SEARCH_LOCATION "\xEF\x9A\x89"
|
||||
#define ICON_FA_UTENSILS "\xEF\x8B\xA7"
|
||||
#define ICON_FA_BLENDER_PHONE "\xEF\x9A\xB6"
|
||||
@@ -860,6 +861,7 @@
|
||||
#define ICON_FA_PEN_NIB "\xEF\x96\xAD"
|
||||
#define ICON_FA_MAP_MARKED "\xEF\x96\x9F"
|
||||
#define ICON_FA_EXPAND "\xEF\x81\xA5"
|
||||
#define ICON_FA_EXPAND_ALT "\xEF\x90\xA4"
|
||||
#define ICON_FA_TRUCK_PICKUP "\xEF\x98\xBC"
|
||||
#define ICON_FA_HOLLY_BERRY "\xEF\x9E\xAA"
|
||||
#define ICON_FA_PRESCRIPTION_BOTTLE "\xEF\x92\x85"
|
||||
|
||||
Reference in New Issue
Block a user