comparison sat_frontends/primitivus/constants.py @ 2562:26edcf3a30eb

core, setup: huge cleaning: - moved directories from src and frontends/src to sat and sat_frontends, which is the recommanded naming convention - move twisted directory to root - removed all hacks from setup.py, and added missing dependencies, it is now clean - use https URL for website in setup.py - removed "Environment :: X11 Applications :: GTK", as wix is deprecated and removed - renamed sat.sh to sat and fixed its installation - added python_requires to specify Python version needed - replaced glib2reactor which use deprecated code by gtk3reactor sat can now be installed directly from virtualenv without using --system-site-packages anymore \o/
author Goffi <goffi@goffi.org>
date Mon, 02 Apr 2018 19:44:50 +0200
parents frontends/src/primitivus/constants.py@0046283a285d
children 56f94936df1e
comparison
equal deleted inserted replaced
2561:bd30dc3ffe5a 2562:26edcf3a30eb
1 #!/usr/bin/env python2
2 # -*- coding: utf-8 -*-
3
4 # Primitivus: a SAT frontend
5 # Copyright (C) 2009-2018 Jérôme Poisson (goffi@goffi.org)
6
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU Affero General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU Affero General Public License for more details.
16
17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20 from sat_frontends.quick_frontend import constants
21
22
23 class Const(constants.Const):
24
25 APP_NAME = "Primitivus"
26 SECTION_NAME = APP_NAME.lower()
27 PALETTE = [
28 ('title', 'black', 'light gray', 'standout,underline'),
29 ('title_focus', 'white,bold', 'light gray', 'standout,underline'),
30 ('selected', 'default', 'dark red'),
31 ('selected_focus', 'default,bold', 'dark red'),
32 ('default', 'default', 'default'),
33 ('default_focus', 'default,bold', 'default'),
34 ('cl_notifs', 'yellow', 'default'),
35 ('cl_notifs_focus', 'yellow,bold', 'default'),
36 ('cl_mention', 'dark red', 'default'),
37 ('cl_mention_focus', 'dark red,bold', 'default'),
38 # Messages
39 ('date', 'light gray', 'default'),
40 ('my_nick', 'dark red,bold', 'default'),
41 ('other_nick', 'dark cyan,bold', 'default'),
42 ('info_msg', 'yellow', 'default', 'bold'),
43 ('msg_lang', 'dark cyan', 'default'),
44 ('msg_mention', 'dark red, bold', 'default'),
45 ('msg_status_received', 'light green, bold', 'default'),
46
47 ('menubar', 'light gray,bold', 'dark red'),
48 ('menubar_focus', 'light gray,bold', 'dark green'),
49 ('selected_menu', 'light gray,bold', 'dark green'),
50 ('menuitem', 'light gray,bold', 'dark red'),
51 ('menuitem_focus', 'light gray,bold', 'dark green'),
52 ('notifs', 'black,bold', 'yellow'),
53 ('notifs_focus', 'dark red', 'yellow'),
54 ('card_neutral', 'dark gray', 'white', 'standout,underline'),
55 ('card_neutral_selected', 'dark gray', 'dark green', 'standout,underline'),
56 ('card_special', 'brown', 'white', 'standout,underline'),
57 ('card_special_selected', 'brown', 'dark green', 'standout,underline'),
58 ('card_red', 'dark red', 'white', 'standout,underline'),
59 ('card_red_selected', 'dark red', 'dark green', 'standout,underline'),
60 ('card_black', 'black', 'white', 'standout,underline'),
61 ('card_black_selected', 'black', 'dark green', 'standout,underline'),
62 ('directory', 'dark cyan, bold', 'default'),
63 ('directory_focus', 'dark cyan, bold', 'dark green'),
64 ('separator', 'brown', 'default'),
65 ('warning', 'light red', 'default'),
66 ('progress_normal', 'default', 'brown'),
67 ('progress_complete', 'default', 'dark green'),
68 ('show_disconnected', 'dark gray', 'default'),
69 ('show_normal', 'default', 'default'),
70 ('show_normal_focus', 'default, bold', 'default'),
71 ('show_chat', 'dark green', 'default'),
72 ('show_chat_focus', 'dark green, bold', 'default'),
73 ('show_away', 'brown', 'default'),
74 ('show_away_focus', 'brown, bold', 'default'),
75 ('show_dnd', 'dark red', 'default'),
76 ('show_dnd_focus', 'dark red, bold', 'default'),
77 ('show_xa', 'dark red', 'default'),
78 ('show_xa_focus', 'dark red, bold', 'default'),
79 ('resource', 'light blue', 'default'),
80 ('resource_main', 'dark blue', 'default'),
81 ('status', 'yellow', 'default'),
82 ('status_focus', 'yellow, bold', 'default'),
83 ('param_selected','default, bold', 'dark red'),
84 ('table_selected','default, bold', 'default'),
85 ]
86 PRESENCE = {"unavailable": (u'⨯', "show_disconnected"),
87 "": (u'✔', "show_normal"),
88 "chat": (u'✆', "show_chat"),
89 "away": (u'✈', "show_away"),
90 "dnd": (u'✖', "show_dnd"),
91 "xa": (u'☄', "show_xa")
92 }
93 LOG_OPT_SECTION = APP_NAME.lower()
94 LOG_OPT_OUTPUT = ('output', constants.Const.LOG_OPT_OUTPUT_SEP + constants.Const.LOG_OPT_OUTPUT_MEMORY)
95
96 CONFIG_SECTION = APP_NAME.lower()
97 CONFIG_OPT_KEY_PREFIX = "KEY_"
98
99 MENU_ID_MAIN = "MAIN_MENU"
100 MENU_ID_WIDGET = "WIDGET_MENU"
101
102 MODE_NORMAL = 'NORMAL'
103 MODE_INSERTION = 'INSERTION'
104 MODE_COMMAND = 'COMMAND'
105
106 GROUP_DATA_FOLDED = 'folded'