1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 00:58:12 +00:00

FileManager: Tweak look of thumbnailing progress bar.

Since it's inside a status bar, it looks a bit better when using a panel
shape with sunken shadow.
This commit is contained in:
Andreas Kling 2019-03-30 13:12:59 +01:00
parent de57628a46
commit f242d6e559
2 changed files with 4 additions and 0 deletions

View file

@ -66,6 +66,9 @@ int main(int argc, char** argv)
progressbar->set_caption("Generating thumbnails: "); progressbar->set_caption("Generating thumbnails: ");
progressbar->set_format(GProgressBar::Format::ValueSlashMax); progressbar->set_format(GProgressBar::Format::ValueSlashMax);
progressbar->set_visible(false); progressbar->set_visible(false);
progressbar->set_frame_shape(GFrame::Shape::Panel);
progressbar->set_frame_shadow(GFrame::Shadow::Sunken);
progressbar->set_frame_thickness(1);
location_textbox->on_return_pressed = [directory_view] (auto& editor) { location_textbox->on_return_pressed = [directory_view] (auto& editor) {
directory_view->open(editor.text()); directory_view->open(editor.text());

View file

@ -11,6 +11,7 @@ GStatusBar::GStatusBar(GWidget* parent)
set_preferred_size({ 0, 20 }); set_preferred_size({ 0, 20 });
set_layout(make<GBoxLayout>(Orientation::Horizontal)); set_layout(make<GBoxLayout>(Orientation::Horizontal));
layout()->set_margins({ 2, 2, 2, 2 }); layout()->set_margins({ 2, 2, 2, 2 });
layout()->set_spacing(2);
m_label = new GLabel(this); m_label = new GLabel(this);
m_label->set_frame_shadow(GFrame::Shadow::Sunken); m_label->set_frame_shadow(GFrame::Shadow::Sunken);
m_label->set_frame_shape(GFrame::Shape::Panel); m_label->set_frame_shape(GFrame::Shape::Panel);