예제 #1
0
파일: editor.py 프로젝트: tehmaze/x84
 def init_theme(self, colors=None, glyphs=None):
     """ Set color and bordering glyphs theme. """
     AnsiWindow.init_theme(self, colors, glyphs)
     if 'highlight' not in self.colors:
         self.colors['highlight'] = self._term.yellow_reverse
     if 'strip' not in self.glyphs:
         self.glyphs['strip'] = u'$ '
예제 #2
0
파일: editor.py 프로젝트: jmederos/x84
 def init_theme(self, colors=None, glyphs=None):
     """ Set color and bordering glyphs theme. """
     AnsiWindow.init_theme(self, colors, glyphs)
     if 'highlight' not in self.colors:
         self.colors['highlight'] = self._term.yellow_reverse
     if 'strip' not in self.glyphs:
         self.glyphs['strip'] = u'$ '
예제 #3
0
파일: lightbar.py 프로젝트: donfanning/x84
 def init_theme(self):
     """
     Initialize color['highlight'].
     """
     from x84.bbs.session import getterminal
     self.colors['highlight'] = getterminal().reverse_green
     self.glyphs['strip'] = u' $'  # indicates content was stripped
     AnsiWindow.init_theme(self)
예제 #4
0
파일: selector.py 프로젝트: splaice/x84
 def init_theme(self, colors=None, glyphs=None):
     from x84.bbs.session import getterminal
     term = getterminal()
     colors = colors or {
         'selected': term.reverse_yellow,
         'unselected': term.bold_black,
     }
     AnsiWindow.init_theme(self, colors=colors, glyphs=glyphs)
예제 #5
0
파일: selector.py 프로젝트: hick/x84
 def init_theme(self, colors=None, glyphs=None):
     from x84.bbs.session import getterminal
     term = getterminal()
     colors = colors or {
         'selected': term.reverse_yellow,
         'unselected': term.bold_black,
     }
     AnsiWindow.init_theme(self, colors=colors, glyphs=glyphs)
예제 #6
0
파일: editor.py 프로젝트: hick/x84
 def init_theme(self, colors=None, glyphs=None):
     AnsiWindow.init_theme(self, colors, glyphs)
     if 'highlight' not in self.colors:
         from x84.bbs.session import getterminal
         term = getterminal()
         self.colors['highlight'] = term.yellow_reverse
     if 'strip' not in self.glyphs:
         self.glyphs['strip'] = u'$ '
예제 #7
0
파일: editor.py 프로젝트: hick/x84
 def init_theme(self, colors=None, glyphs=None):
     AnsiWindow.init_theme(self, colors, glyphs)
     if 'highlight' not in self.colors:
         from x84.bbs.session import getterminal
         term = getterminal()
         self.colors['highlight'] = term.yellow_reverse
     if 'strip' not in self.glyphs:
         self.glyphs['strip'] = u'$ '
예제 #8
0
 def init_theme(self, colors=None, glyphs=None):
     """
     Initialize color['highlight'].
     """
     from x84.bbs.session import getterminal
     colors = colors or {'highlight': getterminal().reverse_yellow}
     glyphs = glyphs or {'strip': u' $'}
     AnsiWindow.init_theme(self, colors, glyphs)
예제 #9
0
파일: lightbar.py 프로젝트: hick/x84
 def init_theme(self, colors=None, glyphs=None):
     """
     Initialize color['highlight'].
     """
     from x84.bbs.session import getterminal
     colors = colors or {'highlight': getterminal().reverse_yellow}
     glyphs = glyphs or {'strip': u' $'}
     AnsiWindow.init_theme(self, colors, glyphs)
예제 #10
0
 def init_theme(self):
     """
     Initialize color['highlight'].
     """
     from x84.bbs.session import getterminal
     self.colors['highlight'] = getterminal().reverse_green
     self.glyphs['strip'] = u' $'  # indicates content was stripped
     AnsiWindow.init_theme(self)
예제 #11
0
 def init_theme(self):
     """
     Initialize colors['selected'] and colors['unselected'].
     """
     from x84.bbs.session import getterminal
     term = getterminal()
     AnsiWindow.init_theme(self)
     self.colors['selected'] = term.reverse
     self.colors['unselected'] = term.normal
예제 #12
0
파일: editor.py 프로젝트: jonny290/yos-x84
 def init_theme(self):
     """
     Initialize colors['highlight'] as REVERSE and glyphs['strip'] as '$ '.
     """
     import x84.bbs.session
     term = x84.bbs.session.getterminal()
     AnsiWindow.init_theme(self)
     self.colors['highlight'] = term.yellow_reverse
     self.glyphs['strip'] = '$ '
예제 #13
0
파일: editor.py 프로젝트: sweenzor/x84
    def init_theme(self):
        """
        Initialize colors['highlight'] as REVERSE and glyphs['strip'] as '$ '.
        """
        import x84.bbs.session

        term = x84.bbs.session.getterminal()
        AnsiWindow.init_theme(self)
        self.colors["highlight"] = term.yellow_reverse
        self.glyphs["strip"] = "$ "
예제 #14
0
파일: lightbar.py 프로젝트: adammendoza/x84
 def init_theme(self, colors=None, glyphs=None):
     """ Set color and bordering glyphs theme. """
     colors = colors or {'highlight': getterminal().reverse_yellow}
     glyphs = glyphs or {'strip': u' $'}
     AnsiWindow.init_theme(self, colors, glyphs)
예제 #15
0
파일: lightbar.py 프로젝트: splaice/x84
 def init_theme(self, colors=None, glyphs=None):
     """ Set color and bordering glyphs theme. """
     colors = colors or {'highlight': getterminal().reverse_yellow}
     glyphs = glyphs or {'strip': u' $'}
     AnsiWindow.init_theme(self, colors, glyphs)