• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package ohos.devtools.views.common;
17 
18 import com.intellij.ui.Gray;
19 import com.intellij.ui.JBColor;
20 
21 import java.awt.Color;
22 
23 /**
24  * ColorConstants
25  *
26  * @since 2021/5/19 16:39
27  */
28 public final class ColorConstants {
29     /**
30      * color RGB 12 14 18
31      */
32     public static final Color BLACK_COLOR = new Color(13, 14, 19);
33 
34     /**
35      * The color black. In the default sRGB space.
36      */
37     public static final Color BLACK = new Color(0, 0, 0);
38 
39     /**
40      * The color cyan. In the default sRGB space.
41      */
42     public static final Color CYAN = new Color(0, 255, 255);
43 
44     /**
45      * HOME_PANE颜色
46      */
47     public static final Color HOME_PANE = new Color(48, 50, 52);
48 
49     /**
50      * SELECT_PANEL颜色
51      */
52     public static final Color SELECT_PANEL = new Color(69, 73, 74);
53 
54     /**
55      * Chart background color
56      */
57     public static final Color CHART_BG = new Color(0x0D0E13);
58 
59     /**
60      * Vertical ruler color
61      */
62     public static final Color RULER = new Color(0x757784);
63 
64     /**
65      * Timeline scale color
66      */
67     public static final Color TIMELINE_SCALE = new Color(0x35353E);
68 
69     /**
70      * Scrollbar background color
71      */
72     public static final Color SCROLLBAR = new Color(0x66FFFFFF, true);
73 
74     /**
75      * Font color
76      */
77     public static final JBColor FONT_COLOR = new JBColor(Color.white, Color.white);
78 
79     /**
80      * 1st level interface memory item chart color
81      */
82     public static final Color MEMORY = new Color(0xFF3391FF, true);
83 
84     /**
85      * 1st level interface CPU item chart color
86      */
87     public static final Color CPU = new Color(0xFF3391FF, true);
88 
89     /**
90      * 2nd level interface memory item chart color: Java
91      */
92     public static final Color MEM_JAVA = new Color(0xFF5BBED4, true);
93 
94     /**
95      * 2nd level interface memory item chart color: Native
96      */
97     public static final Color MEM_NATIVE = new Color(0xFFC3FFCA, true);
98 
99     /**
100      * 2nd level interface memory item chart color: Graphics
101      */
102     public static final Color MEM_GRAPHICS = new Color(0xFFFFA9A9, true);
103 
104     /**
105      * 2nd level interface memory item chart color: Stack
106      */
107     public static final Color MEM_STACK = new Color(0xFF9E6EDA, true);
108 
109     /**
110      * 2nd level interface memory item chart color: Code
111      */
112     public static final Color MEM_CODE = new Color(0xFFFF9167, true);
113 
114     /**
115      * 2nd level interface memory item chart color: Others
116      */
117     public static final Color MEM_OTHERS = new Color(0xFF50B4F3, true);
118 
119     /**
120      * Network Legend color: Received
121      */
122     public static final Color NETWORK_RCV = new Color(0xFF66ADFF, true);
123 
124     /**
125      * Network Legend color: Sent
126      */
127     public static final Color NETWORK_SENT = new Color(0xFFFF9201, true);
128 
129     /**
130      * Network Legend color: Connections
131      */
132     public static final Color NETWORK_CONN = new Color(0xFF7D6B64, true);
133 
134     /**
135      * Energy Legend color: CPU
136      */
137     public static final Color ENERGY_CPU = new Color(0xFF535DA6, true);
138 
139     /**
140      * Energy Legend color: Network
141      */
142     public static final Color ENERGY_NETWORK = new Color(0xFF878FCA, true);
143 
144     /**
145      * Energy Legend color: Location
146      */
147     public static final Color ENERGY_LOCATION = new Color(0xFFB9BFE8, true);
148 
149     /**
150      * Energy Legend color: System event Location
151      */
152     public static final Color ENERGY_EVENT_LOCATION = new Color(65, 155, 249);
153 
154     /**
155      * Energy Legend color: System event Wake Locks
156      */
157     public static final Color ENERGY_EVENT_LOCKS = new Color(0xFFC15A65, true);
158 
159     /**
160      * Energy Legend color: System event Alarms&Jobs
161      */
162     public static final Color ENERGY_EVENT_ALARMS_JOBS = new Color(0xFFFFC880, true);
163 
164     /**
165      * DISK_IO_READ
166      */
167     public static final Color DISK_IO_READ = new Color(0xFFDD9A16, true);
168 
169     /**
170      * DISK_IO_WRITE
171      */
172     public static final Color DISK_IO_WRITE = new Color(0xFF04A9AC, true);
173 
174     /**
175      * trace table COlOR
176      */
177     public static final Color TRACE_TABLE_COLOR = new Color(20, 21, 25);
178 
179     /**
180      * native record border color
181      */
182     public static final Color NATIVE_RECORD_BORDER = new Color(0x474F59);
183 
184     /**
185      * JComBoBox border color
186      */
187     public static final Color COMBOBOX_BORDER = new Color(71, 79, 89);
188 
189     /**
190      * Hyperlinks color
191      */
192     public static final Color HYPERLINK = new Color(0, 118, 255);
193 
194     /**
195      * selected color
196      */
197     public static final Color SELECTED_COLOR = new Color(12, 101, 209);
198 
199     /**
200      * url color
201      */
202     public static final JBColor URL_COLOR = new JBColor(new Color(0x0076FF, true), new Color(0, 118, 255));
203 
204     /**
205      * ability background color
206      */
207     public static final Color ABILITY_COLOR = new JBColor(new Color(0xFF494E52, true), new Color(73, 78, 82));
208 
209     /**
210      * ability active color
211      */
212     public static final Color ABILITY_ACTIVE_COLOR = new JBColor(new Color(0xFF0C65D1, true), new Color(12, 101, 209));
213 
214     /**
215      * ability initial color
216      */
217     public static final Color ABILITY_INITIAL_COLOR =
218         new JBColor(new Color(0xFFAEB1B3, true), new Color(174, 177, 179));
219 
220     /**
221      * network request color
222      */
223     public static final Color NETWORK_REQUEST_COLOR = new JBColor(new Color(0xFF9201), new Color(255, 146, 1));
224 
225     /**
226      * network response color
227      */
228     public static final Color NETWORK_RESPONSE_COLOR = new JBColor(new Color(0x3391FF, true), new Color(51, 145, 255));
229 
230     /**
231      * network overview text color
232      */
233     public static final Color NETWORK_OVER_VIEW_COLOR = new JBColor(new Color(0xFF999999, true), Gray._153);
234 
235     /**
236      * ability home color
237      */
238     public static final Color ABILITY_HOME_COLOR = new JBColor(new Color(0xE88FAE, true), new Color(232, 143, 174));
239 
240     /**
241      * ability home other color
242      */
243     public static final Color ABILITY_HOME_OTHER_COLOR =
244         new JBColor(new Color(0xECA5BF, true), new Color(236, 165, 191));
245 
246     /**
247      * ability back event color
248      */
249     public static final Color ABILITY_BACK_COLOR = new JBColor(new Color(0xACACAC), Gray._172);
250 
251     /**
252      * 构造函数
253      */
ColorConstants()254     private ColorConstants() {
255     }
256 }
257