Upgrade to v2.5
Fyne API v2.5
app
canvas
container
data/binding
data/validation
dialog
driver
driver/desktop
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
package widget
Accordion
AccordionItem
Activity
BaseWidget
Button
ButtonAlign
ButtonIconPlacement
ButtonImportance
ButtonStyle
Card
Check
CheckGroup
CustomTextGridStyle
DisableableWidget
Entry
FileIcon
Form
FormItem
GridWrap
GridWrapItemID
Hyperlink
HyperlinkSegment
Icon
ImageSegment
Importance
Label
List
ListItemID
ListSegment
Menu
Orientation
ParagraphSegment
PopUp
PopUpMenu
ProgressBar
ProgressBarInfinite
RadioGroup
RichText
RichTextBlock
RichTextSegment
RichTextStyle
Select
SelectEntry
Separator
SeparatorSegment
Slider
Table
TableCellID
TextGrid
TextGridCell
TextGridRow
TextGridStyle
TextSegment
Toolbar
ToolbarAction
ToolbarItem
ToolbarSeparator
ToolbarSpacer
Tree
TreeNodeID
Fyne API "widget.Importance"
widget.Importance
import "fyne.io/fyne/v2/widget"
Usage
type Importance
type Importance int
Importance represents how prominent the widget should appear
Since:
2.4
const (
// MediumImportance applies a standard appearance.
MediumImportance Importance = iota
// HighImportance applies a prominent appearance.
HighImportance
// LowImportance applies a subtle appearance.
LowImportance
// DangerImportance applies an error theme to the widget.
//
// Since: 2.3
DangerImportance
// WarningImportance applies a warning theme to the widget.
//
// Since: 2.3
WarningImportance
// SuccessImportance applies a success theme to the widget.
//
// Since: 2.4
SuccessImportance
)