diff options
author | Kostyantyn Ovechko <fastinetserver@gmail.com> | 2010-08-11 23:02:54 +0300 |
---|---|---|
committer | Kostyantyn Ovechko <fastinetserver@gmail.com> | 2010-08-11 23:02:54 +0300 |
commit | 1c012ed4604ec7cb4476eba447751fd5314a9fcb (patch) | |
tree | cf8c1808df6879c2a925585f97e4ad89eb58e193 /tuiclient/settings.cpp | |
parent | Fix warnings: unused return value. (diff) | |
download | idfetch-1c012ed4604ec7cb4476eba447751fd5314a9fcb.tar.gz idfetch-1c012ed4604ec7cb4476eba447751fd5314a9fcb.tar.bz2 idfetch-1c012ed4604ec7cb4476eba447751fd5314a9fcb.zip |
Add [colors] section to tuiclient.conf file
[colors]
Define color scheme for tuiclient.
Avaible colors are:
COLOR_BLACK
COLOR_RED
COLOR_GREEN
COLOR_YELLOW
COLOR_BLUE
COLOR_MAGENTA
COLOR_CYAN
COLOR_WHITE
Defaults:
when tuiclient connected to seggetd:
color_distfile_added_connected_fg=COLOR_WHITE
color_distfile_added_connected_bg=COLOR_BLACK
color_distfile_waiting_connected_fg=COLOR_BLUE
color_distfile_waiting_connected_bg=COLOR_BLACK
color_distfile_script_rejected_connected_fg=COLOR_YELLOW
color_distfile_script_rejected_connected_bg=COLOR_BLACK
color_distfile_downloading_connected_fg=COLOR_CYAN
color_distfile_downloading_connected_bg=COLOR_BLACK
color_distfile_downloaded_connected_fg=COLOR_GREEN
color_distfile_downloaded_connected_bg=COLOR_BLACK
color_distfile_failed_connected_fg=COLOR_RED
color_distfile_failed_connected_bg=COLOR_BLACK
color_distfiles_window_connected_fg=COLOR_WHITE
color_distfiles_window_connected_bg=COLOR_BLACK
color_scroll_window_connected_fg=COLOR_GREEN
color_scroll_window_connected_bg=COLOR_BLACK
color_downloads_connected_fg=COLOR_WHITE
color_downloads_connected_bg=COLOR_BLACK
color_info_connected_fg=COLOR_BLACK
color_info_connected_bg=COLOR_CYAN
color_status_connected_fg=COLOR_GREEN
color_status_connected_bg=COLOR_BLACK
when tuiclient disconnected from seggetd:
color_distfile_added_disconnected_fg=COLOR_WHITE
color_distfile_added_disconnected_bg=COLOR_BLACK
color_distfile_waiting_disconnected_fg=COLOR_WHITE
color_distfile_waiting_disconnected_bg=COLOR_BLACK
color_distfile_script_rejected_disconnected_fg=COLOR_WHITE
color_distfile_script_rejected_disconnected_bg=COLOR_BLACK
color_distfile_downloading_disconnected_fg=COLOR_WHITE
color_distfile_downloading_disconnected_bg=COLOR_BLACK
color_distfile_downloaded_disconnected_fg=COLOR_WHITE
color_distfile_downloaded_disconnected_bg=COLOR_BLACK
color_distfile_failed_disconnected_fg=COLOR_WHITE
color_distfile_failed_disconnected_bg=COLOR_BLACK
color_distfiles_window_disconnected_fg=COLOR_WHITE
color_distfiles_window_disconnected_bg=COLOR_BLACK
color_scroll_window_disconnected_fg=COLOR_WHITE
color_scroll_window_disconnected_bg=COLOR_BLACK
color_downloads_disconnected_fg=COLOR_BLACK
color_downloads_disconnected_bg=COLOR_WHITE
color_info_disconnected_fg=COLOR_WHITE
color_info_disconnected_bg=COLOR_BLACK
color_status_disconnected_fg=COLOR_BLACK
color_status_disconnected_bg=COLOR_RED
Diffstat (limited to 'tuiclient/settings.cpp')
-rw-r--r-- | tuiclient/settings.cpp | 57 |
1 files changed, 56 insertions, 1 deletions
diff --git a/tuiclient/settings.cpp b/tuiclient/settings.cpp index 5ec2453..07fa20f 100644 --- a/tuiclient/settings.cpp +++ b/tuiclient/settings.cpp @@ -30,12 +30,67 @@ Tsettings settings; void Tsettings::init(){ try{ - Tconfig conf("tuiclient.conf"); + Tconfig conf("/etc/seggetd/tuiclient.conf"); conf.set("logs","general_log_file",general_log_file); conf.set("logs","logs_dir",logs_dir); conf.set("logs","error_log_file",error_log_file); conf.set("logs","debug_log_file",debug_log_file); + conf.set_color("colors","color_distfile_added_connected_fg",color_distfile_added_connected_fg); + conf.set_color("colors","color_distfile_added_connected_bg",color_distfile_added_connected_bg); + conf.set_color("colors","color_distfile_added_disconnected_fg",color_distfile_added_disconnected_fg); + conf.set_color("colors","color_distfile_added_disconnected_bg",color_distfile_added_disconnected_bg); + + conf.set_color("colors","color_distfile_waiting_connected_fg",color_distfile_waiting_connected_fg); + conf.set_color("colors","color_distfile_waiting_connected_bg",color_distfile_waiting_connected_bg); + conf.set_color("colors","color_distfile_waiting_disconnected_fg",color_distfile_waiting_disconnected_fg); + conf.set_color("colors","color_distfile_waiting_disconnected_bg",color_distfile_waiting_disconnected_bg); + + conf.set_color("colors","color_distfile_script_rejected_connected_fg",color_distfile_script_rejected_connected_fg); + conf.set_color("colors","color_distfile_script_rejected_connected_bg",color_distfile_script_rejected_connected_bg); + conf.set_color("colors","color_distfile_script_rejected_disconnected_fg",color_distfile_script_rejected_disconnected_fg); + conf.set_color("colors","color_distfile_script_rejected_disconnected_bg",color_distfile_script_rejected_disconnected_bg); + + conf.set_color("colors","color_distfile_downloading_connected_fg",color_distfile_downloading_connected_fg); + conf.set_color("colors","color_distfile_downloading_connected_bg",color_distfile_downloading_connected_bg); + conf.set_color("colors","color_distfile_downloading_disconnected_fg",color_distfile_downloading_disconnected_fg); + conf.set_color("colors","color_distfile_downloading_disconnected_bg",color_distfile_downloading_disconnected_bg); + + conf.set_color("colors","color_distfile_downloaded_connected_fg",color_distfile_downloaded_connected_fg); + conf.set_color("colors","color_distfile_downloaded_connected_bg",color_distfile_downloaded_connected_bg); + conf.set_color("colors","color_distfile_downloaded_disconnected_fg",color_distfile_downloaded_disconnected_fg); + conf.set_color("colors","color_distfile_downloaded_disconnected_bg",color_distfile_downloaded_disconnected_bg); + + conf.set_color("colors","color_distfile_failed_connected_fg",color_distfile_failed_connected_fg); + conf.set_color("colors","color_distfile_failed_connected_bg",color_distfile_failed_connected_bg); + conf.set_color("colors","color_distfile_failed_disconnected_fg",color_distfile_failed_disconnected_fg); + conf.set_color("colors","color_distfile_failed_disconnected_bg",color_distfile_failed_disconnected_bg); + + conf.set_color("colors","color_distfiles_window_connected_fg",color_distfiles_window_connected_fg); + conf.set_color("colors","color_distfiles_window_connected_bg",color_distfiles_window_connected_bg); + conf.set_color("colors","color_distfiles_window_disconnected_fg",color_distfiles_window_disconnected_fg); + conf.set_color("colors","color_distfiles_window_disconnected_bg",color_distfiles_window_disconnected_bg); + + conf.set_color("colors","color_scroll_window_connected_fg",color_scroll_window_connected_fg); + conf.set_color("colors","color_scroll_window_connected_bg",color_scroll_window_connected_bg); + conf.set_color("colors","color_scroll_window_disconnected_fg",color_scroll_window_disconnected_fg); + conf.set_color("colors","color_scroll_window_disconnected_bg",color_scroll_window_disconnected_bg); + + conf.set_color("colors","color_downloads_connected_fg",color_downloads_connected_fg); + conf.set_color("colors","color_downloads_connected_bg",color_downloads_connected_bg); + conf.set_color("colors","color_downloads_disconnected_fg",color_downloads_disconnected_fg); + conf.set_color("colors","color_downloads_disconnected_bg",color_downloads_disconnected_bg); + + conf.set_color("colors","color_info_connected_fg",color_info_connected_fg); + conf.set_color("colors","color_info_connected_bg",color_info_connected_bg); + conf.set_color("colors","color_info_disconnected_fg",color_info_disconnected_fg); + conf.set_color("colors","color_info_disconnected_bg",color_info_disconnected_bg); + + conf.set_color("colors","color_status_connected_fg",color_status_connected_fg); + conf.set_color("colors","color_status_connected_bg",color_status_connected_bg); + conf.set_color("colors","color_status_disconnected_fg",color_status_disconnected_fg); + conf.set_color("colors","color_status_disconnected_bg",color_status_disconnected_bg); + conf.set("ui_server","ui_ip",ui_ip); conf.set("ui_server","ui_port",ui_port,1,65535); |