Keep the status line short, with the full chain and setup in its tooltip
The line now reads only the number of effects that ran and the render time; the chain, canvas size, sources and seed move to the tooltip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+8
-4
@@ -1764,16 +1764,20 @@ void EffectorWindow::onRenderFinished() {
|
||||
previewStack_.set_visible_child("picture");
|
||||
saveButton_.set_sensitive(true);
|
||||
|
||||
// The line itself stays short; the full chain and setup go in the tooltip.
|
||||
const std::size_t effects = enabledStages(stages_).size();
|
||||
std::ostringstream status;
|
||||
status.setf(std::ios::fixed);
|
||||
status.precision(1);
|
||||
status << chainTitle(stages_) << " · " << result_.width() << "×" << result_.height() << " · ";
|
||||
status << effects << (effects == 1 ? " effect" : " effects") << " · " << millis << " ms";
|
||||
std::ostringstream details;
|
||||
details << chainTitle(stages_) << " · " << result_.width() << "×" << result_.height() << " · ";
|
||||
if (!sources_->empty()) {
|
||||
status << sources_->size() << (sources_->size() == 1 ? " source" : " sources") << " · ";
|
||||
details << sources_->size() << (sources_->size() == 1 ? " source" : " sources") << " · ";
|
||||
}
|
||||
status << "seed " << seed_ << " · " << millis << " ms";
|
||||
details << "seed " << seed_;
|
||||
status_.set_text(status.str());
|
||||
status_.set_tooltip_text(status.str());
|
||||
status_.set_tooltip_text(details.str());
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------- project ---
|
||||
|
||||
Reference in New Issue
Block a user