make Quick Search dialog a little taller
This commit is contained in:
@@ -515,6 +515,9 @@ func (c *Controller) ShowQuickSearch() {
|
|||||||
}
|
}
|
||||||
c.ClosePopUpOnEscape(pop)
|
c.ClosePopUpOnEscape(pop)
|
||||||
c.haveModal = true
|
c.haveModal = true
|
||||||
|
min := qs.MinSize()
|
||||||
|
height := fyne.Max(min.Height, fyne.Min(min.Height*1.5, c.MainWindow.Canvas().Size().Height*0.7))
|
||||||
|
pop.Resize(fyne.NewSize(min.Width, height))
|
||||||
pop.Show()
|
pop.Show()
|
||||||
c.MainWindow.Canvas().Focus(qs.SearchEntry)
|
c.MainWindow.Canvas().Focus(qs.SearchEntry)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -173,8 +173,8 @@ func newQuickSearchResult(parent *QuickSearch) *quickSearchResult {
|
|||||||
title: widget.NewLabel(""),
|
title: widget.NewLabel(""),
|
||||||
secondary: widget.NewRichText(),
|
secondary: widget.NewRichText(),
|
||||||
}
|
}
|
||||||
qs.title.Wrapping = fyne.TextTruncate
|
qs.title.Truncation = fyne.TextTruncateEllipsis
|
||||||
qs.secondary.Wrapping = fyne.TextTruncate
|
qs.secondary.Truncation = fyne.TextTruncateEllipsis
|
||||||
qs.ExtendBaseWidget(qs)
|
qs.ExtendBaseWidget(qs)
|
||||||
qs.imageLoader = util.NewThumbnailLoader(parent.imgSource, func(im image.Image) {
|
qs.imageLoader = util.NewThumbnailLoader(parent.imgSource, func(im image.Image) {
|
||||||
qs.image.SetImage(im, false)
|
qs.image.SetImage(im, false)
|
||||||
|
|||||||
Reference in New Issue
Block a user