JBrowser Source Docs
You are reading the documentation for JBrowser 1.5.0. The newest release is 1.5.4. Go to the latest documentation

jbrowser.ui.lazy_toolbar

Generated from the source code of JBrowser 1.5.0.

jbrowser/ui/lazy_toolbar.py · 625 lines

The Lazy Toolbar: a centred command overlay that replaces new-tab pages and the omnibox.

Type a URL, a search, a keyword search (yt lofi), or fuzzy-find open cards, bookmarks, history, saved passwords and every browser command. Prefixes narrow the scope: > commands · @ cards · * bookmarks · # history · $ passwords.

Constants#

Name Value
ROW_H 48
HEADER_H 26
MAX_VISIBLE 10
PREFIXES {'>': 'command', '@': 'card', '*': 'bookmark', '#': 'history', '$': 'password'}

PaletteItem#

class PaletteItemsource

Attributes

Name Value
kind str
title str
subtitle str = ''
glyph str = ''
qicon QIcon | None = None
emoji str = ''
badge str = ''
positions tuple = ()
score float = 0.0
run Callable[[bool], None] | None = None
complete str = ''
header bool = False
meta dict = field(default_factory=dict)

ResultModel#

class ResultModel(QAbstractListModel)source
ResultModel(parent=None)

ResultModel.set_items#

set_items(items: list[PaletteItem]) -> Nonesource

ResultModel.rowCount#

rowCount(parent=QModelIndex()) -> intsource

ResultModel.data#

data(index: QModelIndex, role=Qt.ItemDataRole.DisplayRole)source

ResultModel.flags#

flags(index: QModelIndex)source

ResultDelegate#

class ResultDelegate(QStyledItemDelegate)source

Qt overrides: sizeHint, paint

ResultList#

class ResultList(QListView)source
ResultList(parent: QWidget)

LazyToolbar#

class LazyToolbar(Overlay)source
LazyToolbar(ctx: 'AppContext', ui: 'BrowserController', host: QWidget)

LazyToolbar.panel_rect#

panel_rect() -> QRectsource

LazyToolbar.open#

open(mode: str='new', text: str='', insert_at: int | None=None) -> Nonesource

LazyToolbar.close_overlay#

close_overlay() -> Nonesource

LazyToolbar.refresh#

refresh(request: bool=True) -> Nonesource

Qt overrides: resizeEvent, eventFilter