mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 04:18:11 +08:00
Add preview and disable buttons for nodes (#905)
* Add preview and disable button * Fix tests Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
committed by
Keavon Chambers
co-authored by
Keavon Chambers
parent
6535ffeeb6
commit
01931939ff
@@ -250,6 +250,13 @@ pub enum LayoutGroup {
|
||||
#[serde(rename = "section")]
|
||||
Section { name: String, layout: SubLayout },
|
||||
}
|
||||
|
||||
impl Default for LayoutGroup {
|
||||
fn default() -> Self {
|
||||
Self::Row { widgets: Vec::new() }
|
||||
}
|
||||
}
|
||||
|
||||
impl LayoutGroup {
|
||||
/// Applies a tooltip to all widgets in this row or column without a tooltip.
|
||||
pub fn with_tooltip(self, tooltip: impl Into<String>) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user