source: orange/orange/OrangeWidgets/plot/owtheme.py @ 9087:b3b031532b0e

Revision 9087:b3b031532b0e, 1.7 KB checked in by matejd <matejd@…>, 3 years ago (diff)

Changed font face to verdana - looks nices on osx

Line 
1from PyQt4.Qt import QFont, QColor
2
3class PlotTheme(object):
4    '''Collection of color and font settings.'''
5
6    def __init__(self):
7        self.labels_font = QFont('Verdana', 10)
8        self.helper_font = self.labels_font
9        self.helpers_color = QColor(0, 0, 0, 255)
10        self.background_color = QColor(255, 255, 255, 255)
11        self.axis_title_font = QFont('Verdana', 11, QFont.Bold)
12        self.axis_font = QFont('Verdana', 10)
13        self.labels_color = QColor(0, 0, 0, 255)
14        self.axis_color = QColor(30, 30, 30, 255)
15        self.axis_values_color = QColor(30, 30, 30, 255)
16
17class ScatterPlotTheme(PlotTheme):
18    def __init__(self):
19        super(ScatterPlotTheme, self).__init__()
20        self.grid_color = QColor(200, 200, 200, 255)
21
22class ScatterLightTheme(ScatterPlotTheme):
23    pass
24
25class ScatterDarkTheme(ScatterPlotTheme):
26    def __init__(self):
27        super(ScatterDarkTheme, self).__init__()
28        self.grid_color = QColor(80, 80, 80, 255)
29        self.labels_color = QColor(230, 230, 230, 255)
30        self.helpers_color = QColor(230, 230, 230, 255)
31        self.axis_values_color = QColor(180, 180, 180, 255)
32        self.axis_color = QColor(200, 200, 200, 255)
33        self.background_color = QColor(0, 0, 0, 255)
34
35class LinProjTheme(PlotTheme):
36    def __init__(self):
37        super(LinProjTheme, self).__init__()
38
39class LinProjLightTheme(LinProjTheme):
40    pass
41
42class LinProjDarkTheme(LinProjTheme):
43    def __init__(self):
44        super(LinProjDarkTheme, self).__init__()
45        self.labels_color = QColor(230, 230, 230, 255)
46        self.axis_values_color = QColor(170, 170, 170, 255)
47        self.axis_color = QColor(230, 230, 230, 255)
48        self.background_color = QColor(0, 0, 0, 255)
Note: See TracBrowser for help on using the repository browser.