mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Ticket #3157: unify panel sort arrow's direction.
Fix inconsistency of the arrow's direction in the panel header line across skins. Change default value of "sort-sign-down" from "," (comma) to "." (dot). Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
a71f320e2f
commit
3f7baba96c
@ -131,7 +131,7 @@
|
|||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up = '
|
sort-sign-up = '
|
||||||
sort-sign-down = ,
|
sort-sign-down = .
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
filename-scroll-left-char = {
|
filename-scroll-left-char = {
|
||||||
|
@ -130,7 +130,7 @@
|
|||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up = '
|
sort-sign-up = '
|
||||||
sort-sign-down = ,
|
sort-sign-down = .
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
filename-scroll-left-char = {
|
filename-scroll-left-char = {
|
||||||
|
@ -131,8 +131,8 @@
|
|||||||
menutitle=white;cyan
|
menutitle=white;cyan
|
||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up = ↓
|
sort-sign-up = ↑
|
||||||
sort-sign-down = ↑
|
sort-sign-down = ↓
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
hiddenfiles-sign-show = ⋅
|
hiddenfiles-sign-show = ⋅
|
||||||
|
@ -122,7 +122,7 @@
|
|||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up = '
|
sort-sign-up = '
|
||||||
sort-sign-down = ,
|
sort-sign-down = .
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
filename-scroll-left-char = {
|
filename-scroll-left-char = {
|
||||||
|
@ -163,8 +163,8 @@
|
|||||||
error=color15;color1
|
error=color15;color1
|
||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up=↓
|
sort-sign-up=↑
|
||||||
sort-sign-down=↑
|
sort-sign-down=↓
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
hiddenfiles-sign-show=•
|
hiddenfiles-sign-show=•
|
||||||
|
@ -163,8 +163,8 @@
|
|||||||
error=color15;color1
|
error=color15;color1
|
||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up=↓
|
sort-sign-up=↑
|
||||||
sort-sign-down=↑
|
sort-sign-down=↓
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
hiddenfiles-sign-show=•
|
hiddenfiles-sign-show=•
|
||||||
|
@ -163,8 +163,8 @@
|
|||||||
error=color15;color1
|
error=color15;color1
|
||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up=↓
|
sort-sign-up=↑
|
||||||
sort-sign-down=↑
|
sort-sign-down=↓
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
hiddenfiles-sign-show=•
|
hiddenfiles-sign-show=•
|
||||||
|
@ -163,8 +163,8 @@
|
|||||||
error=color15;color1
|
error=color15;color1
|
||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up=↓
|
sort-sign-up=↑
|
||||||
sort-sign-down=↑
|
sort-sign-down=↓
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
hiddenfiles-sign-show=•
|
hiddenfiles-sign-show=•
|
||||||
|
@ -163,8 +163,8 @@
|
|||||||
error=color231;color160
|
error=color231;color160
|
||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up=↓
|
sort-sign-up=↑
|
||||||
sort-sign-down=↑
|
sort-sign-down=↓
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
hiddenfiles-sign-show=•
|
hiddenfiles-sign-show=•
|
||||||
|
@ -163,8 +163,8 @@
|
|||||||
error=color231;color160
|
error=color231;color160
|
||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up=↓
|
sort-sign-up=↑
|
||||||
sort-sign-down=↑
|
sort-sign-down=↓
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
hiddenfiles-sign-show=•
|
hiddenfiles-sign-show=•
|
||||||
|
@ -163,8 +163,8 @@
|
|||||||
error=color231;color160
|
error=color231;color160
|
||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up=↓
|
sort-sign-up=↑
|
||||||
sort-sign-down=↑
|
sort-sign-down=↓
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
hiddenfiles-sign-show=•
|
hiddenfiles-sign-show=•
|
||||||
|
@ -163,8 +163,8 @@
|
|||||||
error=color231;color160
|
error=color231;color160
|
||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up=↓
|
sort-sign-up=↑
|
||||||
sort-sign-down=↑
|
sort-sign-down=↓
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
hiddenfiles-sign-show=•
|
hiddenfiles-sign-show=•
|
||||||
|
@ -129,8 +129,8 @@
|
|||||||
menutitle=lightgray;black
|
menutitle=lightgray;black
|
||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-down=↑
|
sort-sign-up=↑
|
||||||
sort-sign-up=↓
|
sort-sign-down=↓
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
hiddenfiles-sign-show = •
|
hiddenfiles-sign-show = •
|
||||||
|
@ -179,8 +179,8 @@
|
|||||||
error=rgb554;rgb320
|
error=rgb554;rgb320
|
||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up = ↓
|
sort-sign-up = ↑
|
||||||
sort-sign-down = ↑
|
sort-sign-down = ↓
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
hiddenfiles-sign-show = •
|
hiddenfiles-sign-show = •
|
||||||
|
@ -170,8 +170,8 @@
|
|||||||
error=rgb554;rgb320
|
error=rgb554;rgb320
|
||||||
|
|
||||||
[widget-common]
|
[widget-common]
|
||||||
sort-sign-up = ↓
|
sort-sign-up = ↑
|
||||||
sort-sign-down = ↑
|
sort-sign-down = ↓
|
||||||
|
|
||||||
[widget-panel]
|
[widget-panel]
|
||||||
hiddenfiles-sign-show = •
|
hiddenfiles-sign-show = •
|
||||||
|
@ -1507,7 +1507,7 @@ panel_paint_sort_info (WPanel * panel)
|
|||||||
if (*panel->sort_field->hotkey != '\0')
|
if (*panel->sort_field->hotkey != '\0')
|
||||||
{
|
{
|
||||||
const char *sort_sign =
|
const char *sort_sign =
|
||||||
panel->sort_info.reverse ? panel_sort_down_sign : panel_sort_up_sign;
|
panel->sort_info.reverse ? panel_sort_up_sign : panel_sort_down_sign;
|
||||||
char *str;
|
char *str;
|
||||||
|
|
||||||
str = g_strdup_printf ("%s%s", sort_sign, Q_ (panel->sort_field->hotkey));
|
str = g_strdup_printf ("%s%s", sort_sign, Q_ (panel->sort_field->hotkey));
|
||||||
@ -1582,7 +1582,7 @@ paint_frame (WPanel * panel)
|
|||||||
&& strcmp (format->id, panel->sort_field->id) == 0)
|
&& strcmp (format->id, panel->sort_field->id) == 0)
|
||||||
g_string_append (format_txt,
|
g_string_append (format_txt,
|
||||||
panel->sort_info.reverse
|
panel->sort_info.reverse
|
||||||
? panel_sort_down_sign : panel_sort_up_sign);
|
? panel_sort_up_sign : panel_sort_down_sign);
|
||||||
|
|
||||||
g_string_append (format_txt, format->title);
|
g_string_append (format_txt, format->title);
|
||||||
if (strcmp (format->id, "name") == 0 && panel->filter && *panel->filter)
|
if (strcmp (format->id, "name") == 0 && panel->filter && *panel->filter)
|
||||||
@ -4758,7 +4758,7 @@ void
|
|||||||
panel_init (void)
|
panel_init (void)
|
||||||
{
|
{
|
||||||
panel_sort_up_sign = mc_skin_get ("widget-common", "sort-sign-up", "'");
|
panel_sort_up_sign = mc_skin_get ("widget-common", "sort-sign-up", "'");
|
||||||
panel_sort_down_sign = mc_skin_get ("widget-common", "sort-sign-down", ",");
|
panel_sort_down_sign = mc_skin_get ("widget-common", "sort-sign-down", ".");
|
||||||
|
|
||||||
panel_hiddenfiles_sign_show = mc_skin_get ("widget-panel", "hiddenfiles-sign-show", ".");
|
panel_hiddenfiles_sign_show = mc_skin_get ("widget-panel", "hiddenfiles-sign-show", ".");
|
||||||
panel_hiddenfiles_sign_hide = mc_skin_get ("widget-panel", "hiddenfiles-sign-hide", ".");
|
panel_hiddenfiles_sign_hide = mc_skin_get ("widget-panel", "hiddenfiles-sign-hide", ".");
|
||||||
|
Loading…
Reference in New Issue
Block a user