Skip to content

Commit ac36141

Browse files
authored
Modernize some panel styles and colors (#2285)
* Update color palette for sql query spans * Update css variable name for consistency * Standardize ms units and move them next to the values * Fix css variable names * Add a border and background to template context blocks * Improve contrast of panel close button * Add pointer cursor to toggle context handles * Make profiling panel highlighted row styles more consistent * Make table header styles more consistent
1 parent e25b640 commit ac36141

31 files changed

Lines changed: 300 additions & 304 deletions

File tree

debug_toolbar/locale/bg/LC_MESSAGES/django.po

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -229,35 +229,35 @@ msgstr "Потребителско процесорно време "
229229

230230
#: panels/timer.py:46
231231
#, python-format
232-
msgid "%(utime)0.3f msec"
233-
msgstr "%(utime)0.3f msec"
232+
msgid "%(utime)0.3f ms"
233+
msgstr "%(utime)0.3f ms"
234234

235235
#: panels/timer.py:47
236236
msgid "System CPU time"
237237
msgstr "Системно процесорно време"
238238

239239
#: panels/timer.py:47
240240
#, python-format
241-
msgid "%(stime)0.3f msec"
242-
msgstr "%(stime)0.3f msec"
241+
msgid "%(stime)0.3f ms"
242+
msgstr "%(stime)0.3f ms"
243243

244244
#: panels/timer.py:48
245245
msgid "Total CPU time"
246246
msgstr "Общо процесорно време"
247247

248248
#: panels/timer.py:48
249249
#, python-format
250-
msgid "%(total)0.3f msec"
251-
msgstr "%(total)0.3f msec"
250+
msgid "%(total)0.3f ms"
251+
msgstr "%(total)0.3f ms"
252252

253253
#: panels/timer.py:49
254254
msgid "Elapsed time"
255255
msgstr "Изминало време"
256256

257257
#: panels/timer.py:49
258258
#, python-format
259-
msgid "%(total_time)0.3f msec"
260-
msgstr "%(total_time)0.3f msec"
259+
msgid "%(total_time)0.3f ms"
260+
msgstr "%(total_time)0.3f ms"
261261

262262
#: panels/timer.py:51
263263
msgid "Context switches"
@@ -334,8 +334,8 @@ msgstr "Извиквания"
334334

335335
#: templates/debug_toolbar/panels/cache.html:43
336336
#: templates/debug_toolbar/panels/sql.html:36
337-
msgid "Time (ms)"
338-
msgstr "Време (ms)"
337+
msgid "Time"
338+
msgstr "Време"
339339

340340
#: templates/debug_toolbar/panels/cache.html:44
341341
msgid "Type"
@@ -672,8 +672,8 @@ msgid "Timing attribute"
672672
msgstr "Атрибут на измерването"
673673

674674
#: templates/debug_toolbar/panels/timer.html:37
675-
msgid "Milliseconds since navigation start (+length)"
676-
msgstr "Милисекунди от началото на навигацията (+дължината)"
675+
msgid "Time since navigation start (+duration)"
676+
msgstr "Време от началото на навигацията (+продължителност)"
677677

678678
#: templates/debug_toolbar/panels/versions.html:10
679679
msgid "Package"

debug_toolbar/locale/ca/LC_MESSAGES/django.po

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ msgstr ""
229229

230230
#: panels/timer.py:46
231231
#, python-format
232-
msgid "%(utime)0.3f msec"
232+
msgid "%(utime)0.3f ms"
233233
msgstr ""
234234

235235
#: panels/timer.py:47
@@ -238,7 +238,7 @@ msgstr ""
238238

239239
#: panels/timer.py:47
240240
#, python-format
241-
msgid "%(stime)0.3f msec"
241+
msgid "%(stime)0.3f ms"
242242
msgstr ""
243243

244244
#: panels/timer.py:48
@@ -247,7 +247,7 @@ msgstr ""
247247

248248
#: panels/timer.py:48
249249
#, python-format
250-
msgid "%(total)0.3f msec"
250+
msgid "%(total)0.3f ms"
251251
msgstr ""
252252

253253
#: panels/timer.py:49
@@ -256,7 +256,7 @@ msgstr "Temps emprat"
256256

257257
#: panels/timer.py:49
258258
#, python-format
259-
msgid "%(total_time)0.3f msec"
259+
msgid "%(total_time)0.3f ms"
260260
msgstr ""
261261

262262
#: panels/timer.py:51
@@ -334,8 +334,8 @@ msgstr "Crides"
334334

335335
#: templates/debug_toolbar/panels/cache.html:43
336336
#: templates/debug_toolbar/panels/sql.html:36
337-
msgid "Time (ms)"
338-
msgstr "Temps (ms)"
337+
msgid "Time"
338+
msgstr "Temps"
339339

340340
#: templates/debug_toolbar/panels/cache.html:44
341341
msgid "Type"
@@ -672,7 +672,7 @@ msgid "Timing attribute"
672672
msgstr ""
673673

674674
#: templates/debug_toolbar/panels/timer.html:37
675-
msgid "Milliseconds since navigation start (+length)"
675+
msgid "Time since navigation start (+duration)"
676676
msgstr ""
677677

678678
#: templates/debug_toolbar/panels/versions.html:10

debug_toolbar/locale/cs/LC_MESSAGES/django.po

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -246,35 +246,35 @@ msgstr "Uživatelský čas CPU"
246246

247247
#: panels/timer.py:46
248248
#, python-format
249-
msgid "%(utime)0.3f msec"
250-
msgstr "%(utime)0.3f msec"
249+
msgid "%(utime)0.3f ms"
250+
msgstr "%(utime)0.3f ms"
251251

252252
#: panels/timer.py:47
253253
msgid "System CPU time"
254254
msgstr "Systémový čas CPU"
255255

256256
#: panels/timer.py:47
257257
#, python-format
258-
msgid "%(stime)0.3f msec"
259-
msgstr "%(stime)0.3f msec"
258+
msgid "%(stime)0.3f ms"
259+
msgstr "%(stime)0.3f ms"
260260

261261
#: panels/timer.py:48
262262
msgid "Total CPU time"
263263
msgstr "Celkový čas CPU"
264264

265265
#: panels/timer.py:48
266266
#, python-format
267-
msgid "%(total)0.3f msec"
268-
msgstr "%(total)0.3f msec"
267+
msgid "%(total)0.3f ms"
268+
msgstr "%(total)0.3f ms"
269269

270270
#: panels/timer.py:49
271271
msgid "Elapsed time"
272272
msgstr "Uplynulý čas"
273273

274274
#: panels/timer.py:49
275275
#, python-format
276-
msgid "%(total_time)0.3f msec"
277-
msgstr "%(total_time)0.3f msec"
276+
msgid "%(total_time)0.3f ms"
277+
msgstr "%(total_time)0.3f ms"
278278

279279
#: panels/timer.py:51
280280
msgid "Context switches"
@@ -351,8 +351,8 @@ msgstr "Volání"
351351

352352
#: templates/debug_toolbar/panels/cache.html:43
353353
#: templates/debug_toolbar/panels/sql.html:36
354-
msgid "Time (ms)"
355-
msgstr "Čas (ms)"
354+
msgid "Time"
355+
msgstr "Čas"
356356

357357
#: templates/debug_toolbar/panels/cache.html:44
358358
msgid "Type"
@@ -705,8 +705,8 @@ msgid "Timing attribute"
705705
msgstr "Atribut"
706706

707707
#: templates/debug_toolbar/panels/timer.html:37
708-
msgid "Milliseconds since navigation start (+length)"
709-
msgstr "Milisekund od začátku navigace (+délka)"
708+
msgid "Time since navigation start (+duration)"
709+
msgstr "Čas od začátku navigace (+trvání)"
710710

711711
#: templates/debug_toolbar/panels/versions.html:10
712712
msgid "Package"

debug_toolbar/locale/de/LC_MESSAGES/django.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ msgstr "CPU-Zeit Benutzer"
231231

232232
#: panels/timer.py:46
233233
#, python-format
234-
msgid "%(utime)0.3f msec"
234+
msgid "%(utime)0.3f ms"
235235
msgstr "%(utime)0.3f ms"
236236

237237
#: panels/timer.py:47
@@ -240,7 +240,7 @@ msgstr "CPU-Zeit System"
240240

241241
#: panels/timer.py:47
242242
#, python-format
243-
msgid "%(stime)0.3f msec"
243+
msgid "%(stime)0.3f ms"
244244
msgstr "%(stime)0.3f ms"
245245

246246
#: panels/timer.py:48
@@ -249,7 +249,7 @@ msgstr "CPU-Zeit gesamt"
249249

250250
#: panels/timer.py:48
251251
#, python-format
252-
msgid "%(total)0.3f msec"
252+
msgid "%(total)0.3f ms"
253253
msgstr "%(total)0.3f ms"
254254

255255
#: panels/timer.py:49
@@ -258,7 +258,7 @@ msgstr "Verstrichene Zeit"
258258

259259
#: panels/timer.py:49
260260
#, python-format
261-
msgid "%(total_time)0.3f msec"
261+
msgid "%(total_time)0.3f ms"
262262
msgstr "%(total_time)0.3f ms"
263263

264264
#: panels/timer.py:51
@@ -336,8 +336,8 @@ msgstr "Aufrufe"
336336

337337
#: templates/debug_toolbar/panels/cache.html:43
338338
#: templates/debug_toolbar/panels/sql.html:36
339-
msgid "Time (ms)"
340-
msgstr "Zeit (ms)"
339+
msgid "Time"
340+
msgstr "Zeit"
341341

342342
#: templates/debug_toolbar/panels/cache.html:44
343343
msgid "Type"
@@ -674,8 +674,8 @@ msgid "Timing attribute"
674674
msgstr "Timing-Attribut"
675675

676676
#: templates/debug_toolbar/panels/timer.html:37
677-
msgid "Milliseconds since navigation start (+length)"
678-
msgstr "Millisekunden seit Seitenaufruf (plus Dauer)"
677+
msgid "Time since navigation start (+duration)"
678+
msgstr "Zeit seit Seitenaufruf (plus Dauer)"
679679

680680
#: templates/debug_toolbar/panels/versions.html:10
681681
msgid "Package"

debug_toolbar/locale/en/LC_MESSAGES/django.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ msgstr ""
247247

248248
#: panels/timer.py:46
249249
#, python-format
250-
msgid "%(utime)0.3f msec"
250+
msgid "%(utime)0.3f ms"
251251
msgstr ""
252252

253253
#: panels/timer.py:47
@@ -256,7 +256,7 @@ msgstr ""
256256

257257
#: panels/timer.py:47
258258
#, python-format
259-
msgid "%(stime)0.3f msec"
259+
msgid "%(stime)0.3f ms"
260260
msgstr ""
261261

262262
#: panels/timer.py:48
@@ -265,7 +265,7 @@ msgstr ""
265265

266266
#: panels/timer.py:48
267267
#, python-format
268-
msgid "%(total)0.3f msec"
268+
msgid "%(total)0.3f ms"
269269
msgstr ""
270270

271271
#: panels/timer.py:49
@@ -274,7 +274,7 @@ msgstr ""
274274

275275
#: panels/timer.py:49
276276
#, python-format
277-
msgid "%(total_time)0.3f msec"
277+
msgid "%(total_time)0.3f ms"
278278
msgstr ""
279279

280280
#: panels/timer.py:51
@@ -352,7 +352,7 @@ msgstr ""
352352

353353
#: templates/debug_toolbar/panels/cache.html:43
354354
#: templates/debug_toolbar/panels/sql.html:36
355-
msgid "Time (ms)"
355+
msgid "Time"
356356
msgstr ""
357357

358358
#: templates/debug_toolbar/panels/cache.html:44
@@ -728,7 +728,7 @@ msgid "Timing attribute"
728728
msgstr ""
729729

730730
#: templates/debug_toolbar/panels/timer.html:37
731-
msgid "Milliseconds since navigation start (+length)"
731+
msgid "Time since navigation start (+duration)"
732732
msgstr ""
733733

734734
#: templates/debug_toolbar/panels/versions.html:10

debug_toolbar/locale/es/LC_MESSAGES/django.po

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -240,35 +240,35 @@ msgstr "Tiempo en CPU de usuario"
240240

241241
#: panels/timer.py:46
242242
#, python-format
243-
msgid "%(utime)0.3f msec"
244-
msgstr "%(utime)0.3f mseg"
243+
msgid "%(utime)0.3f ms"
244+
msgstr "%(utime)0.3f ms"
245245

246246
#: panels/timer.py:47
247247
msgid "System CPU time"
248248
msgstr "Tiempo en CPU del sistema"
249249

250250
#: panels/timer.py:47
251251
#, python-format
252-
msgid "%(stime)0.3f msec"
253-
msgstr "%(stime)0.3f mseg"
252+
msgid "%(stime)0.3f ms"
253+
msgstr "%(stime)0.3f ms"
254254

255255
#: panels/timer.py:48
256256
msgid "Total CPU time"
257257
msgstr "Tiempo total de CPU"
258258

259259
#: panels/timer.py:48
260260
#, python-format
261-
msgid "%(total)0.3f msec"
262-
msgstr "%(total)0.3f mseg"
261+
msgid "%(total)0.3f ms"
262+
msgstr "%(total)0.3f ms"
263263

264264
#: panels/timer.py:49
265265
msgid "Elapsed time"
266266
msgstr "Tiempo transcurrido"
267267

268268
#: panels/timer.py:49
269269
#, python-format
270-
msgid "%(total_time)0.3f msec"
271-
msgstr "%(total_time)0.3f mseg"
270+
msgid "%(total_time)0.3f ms"
271+
msgstr "%(total_time)0.3f ms"
272272

273273
#: panels/timer.py:51
274274
msgid "Context switches"
@@ -345,8 +345,8 @@ msgstr "Llamadas"
345345

346346
#: templates/debug_toolbar/panels/cache.html:43
347347
#: templates/debug_toolbar/panels/sql.html:36
348-
msgid "Time (ms)"
349-
msgstr "Tiempo (ms)"
348+
msgid "Time"
349+
msgstr "Tiempo"
350350

351351
#: templates/debug_toolbar/panels/cache.html:44
352352
msgid "Type"
@@ -691,8 +691,8 @@ msgid "Timing attribute"
691691
msgstr "Atributo de tiempo"
692692

693693
#: templates/debug_toolbar/panels/timer.html:37
694-
msgid "Milliseconds since navigation start (+length)"
695-
msgstr "Milisegundos desde inicio de la navegación (+longitud)"
694+
msgid "Time since navigation start (+duration)"
695+
msgstr "Tiempo desde inicio de la navegación (+duración)"
696696

697697
#: templates/debug_toolbar/panels/versions.html:10
698698
msgid "Package"

0 commit comments

Comments
 (0)