Skip to content

Commit 7e29953

Browse files
committed
Update colors of GUI apps
1 parent 01238b3 commit 7e29953

File tree

3 files changed

+22
-19
lines changed

3 files changed

+22
-19
lines changed

seleniumbase/console_scripts/sb_behave_gui.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def create_tkinter_gui(tests, command_string, t_count, f_count, s_tests):
256256
if t_count == 1:
257257
run_display = "Only ONE TEST was found and will be run:"
258258
tests = s_tests
259-
tk.Label(root, text=run_display, fg="blue").pack()
259+
tk.Label(root, text=run_display, bg="yellow", fg="magenta").pack()
260260
text_area = ScrolledText(
261261
root, width=100, height=12, wrap="word", state=tk.DISABLED
262262
)
@@ -271,7 +271,8 @@ def create_tkinter_gui(tests, command_string, t_count, f_count, s_tests):
271271
cb = tk.Checkbutton(
272272
text_area,
273273
text=(row),
274-
bg="white",
274+
bg="teal",
275+
fg="yellow",
275276
anchor="w",
276277
pady=0,
277278
variable=ara[count],
@@ -280,7 +281,8 @@ def create_tkinter_gui(tests, command_string, t_count, f_count, s_tests):
280281
cb = tk.Checkbutton(
281282
text_area,
282283
text=(row),
283-
bg="white",
284+
bg="teal",
285+
fg="yellow",
284286
anchor="w",
285287
pady=0,
286288
borderwidth=0,
@@ -297,7 +299,7 @@ def create_tkinter_gui(tests, command_string, t_count, f_count, s_tests):
297299
tk.Label(
298300
root,
299301
text='Additional "behave" Options: (Eg. "-D incognito --junit")',
300-
fg="blue",
302+
bg="yellow", fg="blue",
301303
).pack()
302304
entry = tk.Entry(root, textvariable=aopts)
303305
entry.pack()
@@ -326,6 +328,7 @@ def create_tkinter_gui(tests, command_string, t_count, f_count, s_tests):
326328
root,
327329
text="Run Selected Tests",
328330
fg="green",
331+
bg="gray",
329332
command=lambda: do_behave_run(
330333
root,
331334
tests,

seleniumbase/console_scripts/sb_caseplans.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,8 @@ def create_tkinter_gui(tests, command_string):
390390
"(Boilerplate Case Plans will be generated as needed)"
391391
)
392392
run_display_2 = "(Tests with existing Case Plans are already checked)"
393-
tk.Label(root, text=run_display, fg="blue").pack()
394-
try:
395-
tk.Label(root, text=run_display_2, fg="purple").pack()
396-
except Exception:
397-
tk.Label(root, text=run_display_2, fg="magenta").pack()
393+
tk.Label(root, text=run_display, bg="yellow", fg="green").pack()
394+
tk.Label(root, text=run_display_2, bg="yellow", fg="magenta").pack()
398395
text_area = ScrolledText(
399396
root, width=100, height=12, wrap="word", state=tk.DISABLED
400397
)
@@ -411,7 +408,8 @@ def create_tkinter_gui(tests, command_string):
411408
cb = tk.Checkbutton(
412409
text_area,
413410
text=(row),
414-
bg="white",
411+
bg="green",
412+
fg="yellow",
415413
anchor="w",
416414
pady=0,
417415
variable=ara[count],
@@ -420,7 +418,8 @@ def create_tkinter_gui(tests, command_string):
420418
cb = tk.Checkbutton(
421419
text_area,
422420
text=(row),
423-
bg="white",
421+
bg="green",
422+
fg="yellow",
424423
anchor="w",
425424
pady=0,
426425
borderwidth=0,
@@ -471,16 +470,14 @@ def create_tkinter_gui(tests, command_string):
471470
try:
472471
tk.Button(
473472
root,
474-
text=(
475-
"Generate Summary of existing Case Plans"),
473+
text=("Generate Summary of existing Case Plans"),
476474
fg="teal",
477475
command=lambda: view_summary_of_existing_case_plans(root, tests),
478476
).pack()
479477
except Exception:
480478
tk.Button(
481479
root,
482-
text=(
483-
"Generate Summary of existing Case Plans"),
480+
text=("Generate Summary of existing Case Plans"),
484481
fg="green",
485482
command=lambda: view_summary_of_existing_case_plans(root, tests),
486483
).pack()

seleniumbase/console_scripts/sb_commander.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def create_tkinter_gui(tests, command_string, files, solo_tests):
291291
% (len(solo_tests))
292292
)
293293
tests = solo_tests
294-
tk.Label(root, text=run_display, fg="blue").pack()
294+
tk.Label(root, text=run_display, bg="yellow", fg="magenta").pack()
295295
text_area = ScrolledText(
296296
root, width=100, height=12, wrap="word", state=tk.DISABLED
297297
)
@@ -306,7 +306,8 @@ def create_tkinter_gui(tests, command_string, files, solo_tests):
306306
cb = tk.Checkbutton(
307307
text_area,
308308
text=(row),
309-
bg="white",
309+
bg="green",
310+
fg="yellow",
310311
anchor="w",
311312
pady=0,
312313
variable=ara[count],
@@ -315,7 +316,8 @@ def create_tkinter_gui(tests, command_string, files, solo_tests):
315316
cb = tk.Checkbutton(
316317
text_area,
317318
text=(row),
318-
bg="white",
319+
bg="green",
320+
fg="yellow",
319321
anchor="w",
320322
pady=0,
321323
borderwidth=0,
@@ -332,7 +334,7 @@ def create_tkinter_gui(tests, command_string, files, solo_tests):
332334
tk.Label(
333335
root,
334336
text='Additional "pytest" Options: (Eg. "--incognito --slow")',
335-
fg="blue",
337+
bg="yellow", fg="blue",
336338
).pack()
337339
entry = tk.Entry(root, textvariable=aopts)
338340
entry.pack()
@@ -363,6 +365,7 @@ def create_tkinter_gui(tests, command_string, files, solo_tests):
363365
root,
364366
text="Run Selected Tests",
365367
fg="green",
368+
bg="gray",
366369
command=lambda: do_pytest_run(
367370
root,
368371
tests,

0 commit comments

Comments
 (0)