FIX: optimize media file panel

1. disable select when no file
2. disable batch edit button when no selection
3. hide batch edit when no file
4. delete/play/open_folder for downloaded file
5. hide type panel

Change-Id: Ida00da366a8f59b2c5028ddcf87e197c20a21e44
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2022-10-20 19:34:37 +08:00
1 parent c2c7a6786d
commit 76d021ceaf
8 files changed
+117 -32

No files matched your search

+15 -1
View File
@@ -18,9 +18,11 @@ END_EVENT_TABLE()
StaticBox::StaticBox()
: state_handler(this)
, border_color(0x303A3C)
, radius(8)
{
border_color = StateColor(
std::make_pair(*wxLIGHT_GREY, (int) StateColor::Disabled),
std::make_pair(0x303A3C, (int) StateColor::Normal));
}
StaticBox::StaticBox(wxWindow* parent,
@@ -62,6 +64,12 @@ void StaticBox::SetBorderColor(StateColor const &color)
Refresh();
}
void StaticBox::SetBorderColorNormal(wxColor const &color)
{
border_color.setColorForStates(color, 0);
Refresh();
}
void StaticBox::SetBackgroundColor(StateColor const &color)
{
background_color = color;
@@ -69,6 +77,12 @@ void StaticBox::SetBackgroundColor(StateColor const &color)
Refresh();
}
void StaticBox::SetBackgroundColorNormal(wxColor const &color)
{
background_color.setColorForStates(color, 0);
Refresh();
}
void StaticBox::SetBackgroundColor2(StateColor const &color)
{
background_color2 = color;