-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathconstants.py
57 lines (46 loc) · 2.07 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016, Cristian García <[email protected]>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
import os
import gi
gi.require_version("Gdk", "3.0")
from gi.repository import Gdk
LOCAL_DIR = os.path.dirname(os.path.realpath(__file__))
DATA_DIR = os.path.join(LOCAL_DIR, "data")
class Color:
UNKNOWN = Gdk.Color(51143.0, 51143.0, 51143.0)
DIATOMIC_NONMETAL = Gdk.Color(63993.0, 37265.0, 65535.0)
ALKALI_METAL = Gdk.Color(65535.0, 50629.0, 37265.0)
ALKALINE_EARTH_METAL = Gdk.Color(65535.0, 57311.0, 37265.0)
TRANSITION_METAL = Gdk.Color(59881.0, 64764.0, 36751.0)
LANTHANIDE = Gdk.Color(53970.0, 65535.0, 37265.0)
ACTINIDE = Gdk.Color(47288.0, 65535.0, 37265.0)
POST_TRANSITION_METAL = Gdk.Color(65535.0, 63993.0, 37265.0)
METALLOID = Gdk.Color(37522.0, 65535.0, 40863.0)
NONMETAL = Gdk.Color(43947.0, 37265.0, 65535.0)
NOBLE_GAS = Gdk.Color(37265.0, 57311.0, 65535.0)
SYNTHETIC = Gdk.Color(65535.0, 0.0, 10794.0)
SELECTED = Gdk.Color(60000.0, 60000.0, 60000.0)
GRAYED = Gdk.Color(20000.0, 20000.0, 20000.0)
SOLID = Gdk.Color(0.0, 0.0, 0.0)
LIQUID = Gdk.Color(0.0, 0.0, 56797.0)
GASEUS = Gdk.Color(39321.0, 0.0, 0.0)
class Screen:
TABLE = 0
INFO = 1