Skip to content

Commit

Permalink
DarkIcons: dark icons for regex, case sensitive and message box infor…
Browse files Browse the repository at this point in the history
…mation
  • Loading branch information
dalthviz committed Nov 15, 2018
1 parent 4dcf47e commit fced27a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
9 changes: 5 additions & 4 deletions spyder/plugins/findinfiles/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from spyder.widgets.comboboxes import PatternComboBox
from spyder.widgets.onecolumntree import OneColumnTree
from spyder.utils.misc import regexp_error_msg
from spyder.utils.qthelpers import create_toolbutton, get_icon
from spyder.utils.qthelpers import create_toolbutton
from spyder.config.gui import get_font
from spyder.widgets.waitingspinner import QWaitingSpinner

Expand Down Expand Up @@ -427,10 +427,11 @@ def __init__(self, parent, search_text, search_text_regexp,
self.search_text = PatternComboBox(self, search_text,
_("Search pattern"))
self.edit_regexp = create_toolbutton(self,
icon=get_icon('regexp.svg'),
icon=ima.icon('regex'),
tip=_('Regular expression'))
self.case_button = create_toolbutton(self,
icon=get_icon("upper_lower.png"),
icon=ima.icon(
"format_letter_case"),
tip=_("Case Sensitive"))
self.case_button.setCheckable(True)
self.case_button.setChecked(case_sensitive)
Expand Down Expand Up @@ -469,7 +470,7 @@ def __init__(self, parent, search_text, search_text_regexp,
and exclude_idx < self.exclude_pattern.count():
self.exclude_pattern.setCurrentIndex(exclude_idx)
self.exclude_regexp = create_toolbutton(self,
icon=get_icon('regexp.svg'),
icon=ima.icon('regex'),
tip=_('Regular expression'))
self.exclude_regexp.setCheckable(True)
self.exclude_regexp.setChecked(exclude_regexp)
Expand Down
4 changes: 3 additions & 1 deletion spyder/utils/icon_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
}

_qtaargs = {
'format_letter_case': [('mdi.format-letter-case',), {'color': MAIN_FG_COLOR}],
'regex': [('mdi.regex',), {'color': MAIN_FG_COLOR}],
'log': [('fa.file-text-o',), {'color': MAIN_FG_COLOR}],
'configure': [('fa.wrench',), {'color': MAIN_FG_COLOR}],
'bold': [('fa.bold',), {'color': MAIN_FG_COLOR}],
Expand Down Expand Up @@ -176,7 +178,7 @@
'DialogCloseButton': [('fa.close',), {'color': MAIN_FG_COLOR}],
'DirClosedIcon': [('fa.folder-o',), {'color': MAIN_FG_COLOR}],
'DialogHelpButton': [('fa.life-ring',), {'color': 'darkred'}],
'MessageBoxInformation': [('fa.info',), {'color': '3775a9'}],
'MessageBoxInformation': [('fa.info',), {'color': MAIN_FG_COLOR}],
'DirOpenIcon': [('fa.folder-open',), {'color': MAIN_FG_COLOR}],
'FileIcon': [('fa.file-o',), {'color': MAIN_FG_COLOR}],
'ExcelFileIcon': [('fa.file-excel-o',), {'color': MAIN_FG_COLOR}],
Expand Down
5 changes: 3 additions & 2 deletions spyder/widgets/findreplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,14 @@ def __init__(self, parent, enable_replace=False):
self.next_button.clicked.connect(self.update_search_combo)
self.previous_button.clicked.connect(self.update_search_combo)

self.re_button = create_toolbutton(self, icon=get_icon('regexp.svg'),
self.re_button = create_toolbutton(self, icon=ima.icon('regex'),
tip=_("Regular expression"))
self.re_button.setCheckable(True)
self.re_button.toggled.connect(lambda state: self.find())

self.case_button = create_toolbutton(self,
icon=get_icon("upper_lower.png"),
icon=ima.icon(
"format_letter_case"),
tip=_("Case Sensitive"))
self.case_button.setCheckable(True)
self.case_button.toggled.connect(lambda state: self.find())
Expand Down

0 comments on commit fced27a

Please sign in to comment.