# Path: vise/config.py
# def color(key, default):
#     ans = colors().get(key)
#     if not ans or ans == 'default':
#         ans = default
#     return ans
# 
# Path: vise/constants.py
# STATUS_BAR_HEIGHT = 24


from collections import namedtuple
from gettext import gettext as _
from time import monotonic
from xml.sax.saxutils import escape
from PyQt6.QtCore import Qt, QTimer, QUrl, pyqtSignal, QPointF
from PyQt6.QtGui import (QBrush, QColor, QLinearGradient, QPainter, QPalette,
                         QStaticText, QTextOption)
from PyQt6.QtWidgets import (QApplication, QHBoxLayout, QLabel, QLineEdit,
                             QStackedWidget, QStatusBar, QWidget)
from .config import color
from .constants import STATUS_BAR_HEIGHT
        from vise.view import certificate_error_domains
#!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>





class Search(QLineEdit):

    do_search = pyqtSignal(object, object)
    abort_search = pyqtSignal()
    passthrough_keys = True

    def __init__(self, parent=None):
        QLineEdit.__init__(self, parent)
        self.setAttribute(Qt.WidgetAttribute.WA_MacShowFocusRect, False)
        self.setStyleSheet('QLineEdit { background: transparent; color: %s; selection-background-color: %s }' % (
            color('status bar foreground', 'palette(window-text)'),

# Path: vise/config.py
# def color(key, default):
#     ans = colors().get(key)
#     if not ans or ans == 'default':
#         ans = default
#     return ans
# 
# Path: vise/constants.py
# STATUS_BAR_HEIGHT = 24


# Path: vise/status_bar.py
from collections import namedtuple
from gettext import gettext as _
from time import monotonic
from xml.sax.saxutils import escape
from PyQt6.QtCore import Qt, QTimer, QUrl, pyqtSignal, QPointF
from PyQt6.QtGui import (QBrush, QColor, QLinearGradient, QPainter, QPalette,
                         QStaticText, QTextOption)
from PyQt6.QtWidgets import (QApplication, QHBoxLayout, QLabel, QLineEdit,
                             QStackedWidget, QStatusBar, QWidget)
from .config import color
from .constants import STATUS_BAR_HEIGHT
        from vise.view import certificate_error_domains

#!/usr/bin/env python
# vim:fileencoding=utf-8
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>





class Search(QLineEdit):

    do_search = pyqtSignal(object, object)
    abort_search = pyqtSignal()
    passthrough_keys = True

    def __init__(self, parent=None):
        QLineEdit.__init__(self, parent)
        self.setAttribute(Qt.WidgetAttribute.WA_MacShowFocusRect, False)
        self.setStyleSheet('QLineEdit { background: transparent; color: %s; selection-background-color: %s }' % (
            color('status bar foreground', 'palette(window-text)'),

            color('status bar selection', 'palette(window-text)'),