UI changes:

- re-align widgets for the better looks
- split duo-combobox for changing colors of prompt-parts into separate combobox for each prompt-part
parent f4f5667a
......@@ -27,6 +27,11 @@ Overview of changes in v9.1 "Dial T for TNT"
- add "Reset" button: reset to last saved user configuration
- add "Factory" button: reset to vendor or factory configuration
* restructure prompt color settings
++ before: two combined combo boxes (not optimal from usability view)
++ after : a separate combo box for each color setting
* re-align widget groups for the better looks
* show what category the user is currently in, in the header
* added missing revert-to-default icons for PWD Length Spinbutton
* show icon on the "Back", "Empty", "Undo" and "Redo" buttons again
......
This diff is collapsed.
......@@ -79,24 +79,15 @@ class BashStyleNG(object):
WidgetHandler.InitWidget("show_load", "Style", "load", "bool", None)
WidgetHandler.InitWidget("show_battery", "Style", "battery_load", "bool", None)
WidgetHandler.InitWidget("show_mem", "Style", "mem", "combo", dicts.memory_types)
# special combobox not (yet) handled by widgethandler.py
self.color_of = gtkbuilder.get_object("color_of")
self.color_to = gtkbuilder.get_object("color_to")
self.color_of.set_active(0)
self.color_to.set_active(0)
def change_color(widget, data=None):
color_set = self.color_of.get_active()
color_is = self.color_to.get_active()
if color_set != 0 and color_is != 0:
config.cfo["Style"][dicts.color_keys[color_set]] = dicts.colors[color_is]
self.color_to.set_active(0)
self.color_of.set_active(0)
self.color_of.connect("changed", change_color)
self.color_to.connect("changed", change_color)
WidgetHandler.InitWidget("color_date", "Style", "color_date", "combo", dicts.colors)
WidgetHandler.InitWidget("color_font", "Style", "color_font", "combo", dicts.colors)
WidgetHandler.InitWidget("color_host", "Style", "color_host", "combo", dicts.colors)
WidgetHandler.InitWidget("color_ps234", "Style", "color_ps234", "combo", dicts.colors)
WidgetHandler.InitWidget("color_separator", "Style", "color_separator", "combo", dicts.colors)
WidgetHandler.InitWidget("color_time", "Style", "color_time", "combo", dicts.colors)
WidgetHandler.InitWidget("color_uptime", "Style", "color_uptime", "combo", dicts.colors)
WidgetHandler.InitWidget("color_user", "Style", "color_user", "combo", dicts.colors)
WidgetHandler.InitWidget("color_wdir", "Style", "color_wdir", "combo", dicts.colors)
####################### Aliases ####################################################
WidgetHandler.InitWidget("alias1", "Alias", "alias_one", "text", None)
......
......@@ -69,27 +69,27 @@ color_keys = {
}
colors = {
1 : "$black",
2 : "$red",
3 : "$green",
4 : "$yellow",
5 : "$blue",
6 : "$magenta",
7 : "$cyan",
8 : "$white",
9 : "$coldblue",
10 : "$smoothblue",
11 : "$iceblue",
12 : "$turqoise",
13 : "$smoothgreen",
14 : "$winered",
15 : "$brown",
16 : "$silver",
17 : "$ocher",
18 : "$orange",
19 : "$purple",
20 : "$pink",
21 : "$cream",
0 : "$black",
1 : "$red",
2 : "$green",
3 : "$yellow",
4 : "$blue",
5 : "$magenta",
6 : "$cyan",
7 : "$white",
8 : "$coldblue",
9 : "$smoothblue",
10 : "$iceblue",
11 : "$turqoise",
12 : "$smoothgreen",
13 : "$winered",
14 : "$brown",
15 : "$silver",
16 : "$ocher",
17 : "$orange",
18 : "$purple",
19 : "$pink",
20 : "$cream",
}
prompt_styles = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment