New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customize dialog ? #81

Closed
oberon-manjaro opened this Issue Mar 2, 2017 · 41 comments

Comments

Projects
None yet
3 participants
@oberon-manjaro
Collaborator

oberon-manjaro commented Mar 2, 2017

If we want to change the default appearance of dialog it can be done with configuration in ~/.dialogrc

# Run-time configuration file for dialog
#
# Automatically generated by "dialog --create-rc <file>"
#
#
# Types of values:
#
# Number     -  <number>
# String     -  "string"
# Boolean    -  <ON|OFF>
# Attribute  -  (foreground,background,highlight?)

# Set aspect-ration.
aspect = 0

# Set separator (for multiple widgets output).
separate_widget = ""

# Set tab-length (for textbox tab-conversion).
tab_len = 0

# Make tab-traversal for checklist, etc., include the list.
visit_items = OFF

# Shadow dialog boxes? This also turns on color.
use_shadow = ON

# Turn color support ON or OFF
use_colors = ON

# Screen color
screen_color = (CYAN,GREEN,ON)

# Shadow color
shadow_color = (BLACK,BLACK,ON)

# Dialog box color
dialog_color = (BLACK,WHITE,OFF)

# Dialog box title color
title_color = (BLUE,WHITE,ON)

# Dialog box border color
border_color = (WHITE,WHITE,ON)

# Active button color
button_active_color = (WHITE,BLUE,ON)

# Inactive button color
button_inactive_color = (BLACK,WHITE,OFF)

# Active button key color
button_key_active_color = (WHITE,BLUE,ON)

# Inactive button key color
button_key_inactive_color = (RED,WHITE,OFF)

# Active button label color
button_label_active_color = (YELLOW,BLUE,ON)

# Inactive button label color
button_label_inactive_color = (BLACK,WHITE,ON)

# Input box color
inputbox_color = (BLACK,WHITE,OFF)

# Input box border color
inputbox_border_color = (BLACK,WHITE,OFF)

# Search box color
searchbox_color = (BLACK,WHITE,OFF)

# Search box title color
searchbox_title_color = (BLUE,WHITE,ON)

# Search box border color
searchbox_border_color = (WHITE,WHITE,ON)

# File position indicator color
position_indicator_color = (BLUE,WHITE,ON)

# Menu box color
menubox_color = (BLACK,WHITE,OFF)

# Menu box border color
menubox_border_color = (WHITE,WHITE,ON)

# Item color
item_color = (BLACK,WHITE,OFF)

# Selected item color
item_selected_color = (WHITE,BLUE,ON)

# Tag color
tag_color = (BLUE,WHITE,ON)

# Selected tag color
tag_selected_color = (YELLOW,BLUE,ON)

# Tag key color
tag_key_color = (RED,WHITE,OFF)

# Selected tag key color
tag_key_selected_color = (RED,BLUE,ON)

# Check box color
check_color = (BLACK,WHITE,OFF)

# Selected check box color
check_selected_color = (WHITE,BLUE,ON)

# Up arrow color
uarrow_color = (GREEN,WHITE,ON)

# Down arrow color
darrow_color = (GREEN,WHITE,ON)

# Item help-text color
itemhelp_color = (WHITE,BLACK,OFF)

# Active form text color
form_active_text_color = (WHITE,BLUE,ON)

# Form text color
form_text_color = (WHITE,CYAN,ON)

# Readonly form item color
form_item_readonly_color = (CYAN,WHITE,ON)

low priority! 😉

@papajoker

This comment has been minimized.

Show comment
Hide comment
@papajoker

papajoker Mar 2, 2017

Collaborator

tested not simple the colors choice, add in source:

 export DIALOGRC="$PWD/data/.dialog.rc"
Collaborator

papajoker commented Mar 2, 2017

tested not simple the colors choice, add in source:

 export DIALOGRC="$PWD/data/.dialog.rc"
@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 2, 2017

Collaborator

well we could simply deploy the config file to the live user's home with manjaro-tools. But it's really not high priority! ;)

Collaborator

oberon-manjaro commented Mar 2, 2017

well we could simply deploy the config file to the live user's home with manjaro-tools. But it's really not high priority! ;)

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 2, 2017

Collaborator

when manjaro-tools creates user 'manjaro' in the live session, whatever has been installed to /etc/skel via overlay or by a settings-package will end up in /home/user/manjaro/...
so that should not be a problem.

Collaborator

oberon-manjaro commented Mar 2, 2017

when manjaro-tools creates user 'manjaro' in the live session, whatever has been installed to /etc/skel via overlay or by a settings-package will end up in /home/user/manjaro/...
so that should not be a problem.

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 3, 2017

Collaborator

I was just looking at the package console-solarized and how they achieve the costomized console colors. They use systemd getty services and export the colors with a script. For the architect ISO It wouldn't be a problem to do the same.
Like that we are free to not use only the few pre-defined console colors but can modify them to whatever we like. We have 16 colors available to define with hexcodes - more than we could possibly ever use! ;)

some_color0="123abc"
some_color1= ...

echo -en "\e]P0$some_grey"   # Black
echo -en "\e]P1$some_red"    # Red
echo -en "\e]P2$some_green"  # Green
...
echo -en "\e]Pe$..."
echo -en "\e]Pf$..."
Collaborator

oberon-manjaro commented Mar 3, 2017

I was just looking at the package console-solarized and how they achieve the costomized console colors. They use systemd getty services and export the colors with a script. For the architect ISO It wouldn't be a problem to do the same.
Like that we are free to not use only the few pre-defined console colors but can modify them to whatever we like. We have 16 colors available to define with hexcodes - more than we could possibly ever use! ;)

some_color0="123abc"
some_color1= ...

echo -en "\e]P0$some_grey"   # Black
echo -en "\e]P1$some_red"    # Red
echo -en "\e]P2$some_green"  # Green
...
echo -en "\e]Pe$..."
echo -en "\e]Pf$..."
@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 4, 2017

Collaborator

dialogrc is a bit unintuitive ... but I'm getting there, I think 😁
How about some more maia?

😆
What do you think, @Chrysostomus @papajoker

Collaborator

oberon-manjaro commented Mar 4, 2017

dialogrc is a bit unintuitive ... but I'm getting there, I think 😁
How about some more maia?

😆
What do you think, @Chrysostomus @papajoker

@Chrysostomus

This comment has been minimized.

Show comment
Hide comment
@Chrysostomus

Chrysostomus Mar 4, 2017

Owner

Better colors than my current attempt, though work in progress. Background title could also be cyan

Owner

Chrysostomus commented Mar 4, 2017

Better colors than my current attempt, though work in progress. Background title could also be cyan

@Chrysostomus

This comment has been minimized.

Show comment
Hide comment
@Chrysostomus

Chrysostomus Mar 4, 2017

Owner

That dark gray text is not not sufficiently legible on that background though.

Owner

Chrysostomus commented Mar 4, 2017

That dark gray text is not not sufficiently legible on that background though.

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 4, 2017

Collaborator

which dark grey text do you mean?

Collaborator

oberon-manjaro commented Mar 4, 2017

which dark grey text do you mean?

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 4, 2017

Collaborator

the inactive numbers? I didn't yet manage to find where they are defined ... 😛

Collaborator

oberon-manjaro commented Mar 4, 2017

the inactive numbers? I didn't yet manage to find where they are defined ... 😛

@Chrysostomus

This comment has been minimized.

Show comment
Hide comment
@Chrysostomus

Chrysostomus Mar 4, 2017

Owner

Inactive numbers, yes

Owner

Chrysostomus commented Mar 4, 2017

Inactive numbers, yes

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 4, 2017

Collaborator

The only place where I have set that darkest color is the shadow I think. But changing that value doesn't move them either ...

Collaborator

oberon-manjaro commented Mar 4, 2017

The only place where I have set that darkest color is the shadow I think. But changing that value doesn't move them either ...

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 4, 2017

Collaborator

I made a package with that stuff so we can test it on the ISO. It needs to be installed in the first place though for the systemd stuff to work and the config being copied to root's home - will build a new ISO tomorrow. - Now off for some sleep ... ... :)

Collaborator

oberon-manjaro commented Mar 4, 2017

I made a package with that stuff so we can test it on the ISO. It needs to be installed in the first place though for the systemd stuff to work and the config being copied to root's home - will build a new ISO tomorrow. - Now off for some sleep ... ... :)

oberon-manjaro added a commit to manjaro/packages-community that referenced this issue Mar 4, 2017

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 4, 2017

Collaborator

ma-console-colors

Collaborator

oberon-manjaro commented Mar 4, 2017

ma-console-colors

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 4, 2017

Collaborator

maybe those numbers take button_key_inactive_color

Collaborator

oberon-manjaro commented Mar 4, 2017

maybe those numbers take button_key_inactive_color

@Chrysostomus

This comment has been minimized.

Show comment
Hide comment
@Chrysostomus

Chrysostomus Mar 4, 2017

Owner

Sleep well! You have done great!

Owner

Chrysostomus commented Mar 4, 2017

Sleep well! You have done great!

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 4, 2017

Collaborator

thank you! :)

Collaborator

oberon-manjaro commented Mar 4, 2017

thank you! :)

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 4, 2017

Collaborator

Got it now I think. 😄

Might be that we find some places still in special dialog windows that will need some adjustment, but in general this is cracked I'd say. I'll just try some more things with that systemd service and might just make a console-maia package from that... openrc would need a different approach, but that's not really relevant for us, since there's really no need for the installer ISO to come with different init systems.

Collaborator

oberon-manjaro commented Mar 4, 2017

Got it now I think. 😄

Might be that we find some places still in special dialog windows that will need some adjustment, but in general this is cracked I'd say. I'll just try some more things with that systemd service and might just make a console-maia package from that... openrc would need a different approach, but that's not really relevant for us, since there's really no need for the installer ISO to come with different init systems.

@Chrysostomus

This comment has been minimized.

Show comment
Hide comment
@Chrysostomus

Chrysostomus Mar 4, 2017

Owner

I might be switching console-solarized to console-maia then... Would be awesome if package supported openrc too, but not high priority

Owner

Chrysostomus commented Mar 4, 2017

I might be switching console-solarized to console-maia then... Would be awesome if package supported openrc too, but not high priority

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 4, 2017

Collaborator

Building it already 😃 It will be maia-console. For openrc there seems to be a way via /etc/issue ... We can sort that out later 😉

Collaborator

oberon-manjaro commented Mar 4, 2017

Building it already 😃 It will be maia-console. For openrc there seems to be a way via /etc/issue ... We can sort that out later 😉

oberon-manjaro added a commit to manjaro/packages-community that referenced this issue Mar 4, 2017

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

@Chrysostomus after juggling around some more with colors I've just pushed maia-console 1.2, including an adjusted dialogrc. Dialog now looks pratically almost like before, but the theme now should work a lot better in the console also for ranger and stuff. Please check!
I'll have to rebuild the architect ISO with this, which is not a big deal... I will also do a 32bit additionally this time.

Collaborator

oberon-manjaro commented Mar 8, 2017

@Chrysostomus after juggling around some more with colors I've just pushed maia-console 1.2, including an adjusted dialogrc. Dialog now looks pratically almost like before, but the theme now should work a lot better in the console also for ranger and stuff. Please check!
I'll have to rebuild the architect ISO with this, which is not a big deal... I will also do a 32bit additionally this time.

@oberon-manjaro oberon-manjaro reopened this Mar 8, 2017

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

The dialogrc will just work with maia-console only. It's an impossible task to do both I think: make the maia theme work and provide a dialog config that works for other themes. Try with three different terminal emulators and you get three completely different results. It also depends totally on the color profile your terminal uses, of course... ... So. It's just gonna have to be dialog default if not in the console and/or on the ISO I think.

Collaborator

oberon-manjaro commented Mar 8, 2017

The dialogrc will just work with maia-console only. It's an impossible task to do both I think: make the maia theme work and provide a dialog config that works for other themes. Try with three different terminal emulators and you get three completely different results. It also depends totally on the color profile your terminal uses, of course... ... So. It's just gonna have to be dialog default if not in the console and/or on the ISO I think.

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

I'll make the text a little whiter still to make it more clearly readable... Also I can do a little better for the buttons - stay tuned 😉

Collaborator

oberon-manjaro commented Mar 8, 2017

I'll make the text a little whiter still to make it more clearly readable... Also I can do a little better for the buttons - stay tuned 😉

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

maia-console 1.2-2 😄

Collaborator

oberon-manjaro commented Mar 8, 2017

maia-console 1.2-2 😄

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

ok. I now see that ranger uses magenta for regular highlight. That color is currently ugly, but there's no problem in changing it to whatever we like, since our new the dialogrc isn't using it anyway...

Collaborator

oberon-manjaro commented Mar 8, 2017

ok. I now see that ranger uses magenta for regular highlight. That color is currently ugly, but there's no problem in changing it to whatever we like, since our new the dialogrc isn't using it anyway...

@Chrysostomus

This comment has been minimized.

Show comment
Hide comment
@Chrysostomus

Chrysostomus Mar 8, 2017

Owner

I'll test it tonight. I'm especially interested in in how it works together with zsh-syntax-highlighting that manjaro-zsh-config uses by default

Owner

Chrysostomus commented Mar 8, 2017

I'll test it tonight. I'm especially interested in in how it works together with zsh-syntax-highlighting that manjaro-zsh-config uses by default

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

Hm. Let me know. But I'm a little afraid this is getting bottomless to serve all the different color customizations...

Collaborator

oberon-manjaro commented Mar 8, 2017

Hm. Let me know. But I'm a little afraid this is getting bottomless to serve all the different color customizations...

@Chrysostomus

This comment has been minimized.

Show comment
Hide comment
@Chrysostomus

Chrysostomus Mar 8, 2017

Owner

Worry not, we should be close to the finishing line :)

Owner

Chrysostomus commented Mar 8, 2017

Worry not, we should be close to the finishing line :)

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

1.2-3 tested also with manajro zsh shell - maybe not ideal, but it works ok I think ...

Collaborator

oberon-manjaro commented Mar 8, 2017

1.2-3 tested also with manajro zsh shell - maybe not ideal, but it works ok I think ...

@Chrysostomus

This comment has been minimized.

Show comment
Hide comment
@Chrysostomus

Chrysostomus Mar 8, 2017

Owner

Not on my mirror just yet. 1.2-3 was already a significant improvement. I'll test the next when I get it.

Idea: would it be possible to assign that maia green to cyan?

Owner

Chrysostomus commented Mar 8, 2017

Not on my mirror just yet. 1.2-3 was already a significant improvement. I'll test the next when I get it.

Idea: would it be possible to assign that maia green to cyan?

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

assign that maia green to cyan

let me just find out what happens 😜

Collaborator

oberon-manjaro commented Mar 8, 2017

assign that maia green to cyan

let me just find out what happens 😜

@Chrysostomus

This comment has been minimized.

Show comment
Hide comment
@Chrysostomus

Chrysostomus Mar 8, 2017

Owner

Now online. It is better and worse than previous. Prompt gets diaplayed better, but syntax highlighting and autosuggestion colors are weird, as are man pages. Not unusable or hindering weird, just not as nice as they could be.

I'll see if I can hack it a bit too...

Owner

Chrysostomus commented Mar 8, 2017

Now online. It is better and worse than previous. Prompt gets diaplayed better, but syntax highlighting and autosuggestion colors are weird, as are man pages. Not unusable or hindering weird, just not as nice as they could be.

I'll see if I can hack it a bit too...

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

so. maia green on cyan works, in ranger just everything gets really bright and similar, in zsh shell i don't see a huge difference. What I still don't find good is how ranger displays image files. They are too dark...

Collaborator

oberon-manjaro commented Mar 8, 2017

so. maia green on cyan works, in ranger just everything gets really bright and similar, in zsh shell i don't see a huge difference. What I still don't find good is how ranger displays image files. They are too dark...

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

The problem with dialog is this:
When I look at for example how solarized console theme is organized: They leave colors 0-7 what their names actually are as the hightlight colors.
But with dialog we don't have the free choice to use colors 8-15 since it is only possible to specify the eight color names while in fact 16 colors are being applied in the end - kind of stupid!

Collaborator

oberon-manjaro commented Mar 8, 2017

The problem with dialog is this:
When I look at for example how solarized console theme is organized: They leave colors 0-7 what their names actually are as the hightlight colors.
But with dialog we don't have the free choice to use colors 8-15 since it is only possible to specify the eight color names while in fact 16 colors are being applied in the end - kind of stupid!

@Chrysostomus

This comment has been minimized.

Show comment
Hide comment
@Chrysostomus

Chrysostomus Mar 8, 2017

Owner

I assume it applies the "bright" colors on bold text?

Owner

Chrysostomus commented Mar 8, 2017

I assume it applies the "bright" colors on bold text?

@Chrysostomus

This comment has been minimized.

Show comment
Hide comment
@Chrysostomus

Chrysostomus Mar 8, 2017

Owner

But yeah, sounds mighty inconvenient

Owner

Chrysostomus commented Mar 8, 2017

But yeah, sounds mighty inconvenient

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

no. it's somehow associated to foreground and background as in screen(background)color vs dialog box I think. bold is dealt with separately as what it is and with terminus as we have it, not at all. Could we btw configure vconsole in a way that it uses normal and bold variants of terminus?

Collaborator

oberon-manjaro commented Mar 8, 2017

no. it's somehow associated to foreground and background as in screen(background)color vs dialog box I think. bold is dealt with separately as what it is and with terminus as we have it, not at all. Could we btw configure vconsole in a way that it uses normal and bold variants of terminus?

@Chrysostomus

This comment has been minimized.

Show comment
Hide comment
@Chrysostomus

Chrysostomus Mar 8, 2017

Owner

I don't think so, but I can be wrong

Owner

Chrysostomus commented Mar 8, 2017

I don't think so, but I can be wrong

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

yeah. I also assumed it's only possible in the terminal.

Collaborator

oberon-manjaro commented Mar 8, 2017

yeah. I also assumed it's only possible in the terminal.

@Chrysostomus

This comment has been minimized.

Show comment
Hide comment
@Chrysostomus

Chrysostomus Mar 8, 2017

Owner

You could try http://stackoverflow.com/questions/2924697/how-does-one-output-bold-text-in-bash

If text doesn't get bolded, it may switch to bright variant instead

Owner

Chrysostomus commented Mar 8, 2017

You could try http://stackoverflow.com/questions/2924697/how-does-one-output-bold-text-in-bash

If text doesn't get bolded, it may switch to bright variant instead

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

we can live without bold I think. looks like this is all more for terminal anyway?

Collaborator

oberon-manjaro commented Mar 8, 2017

we can live without bold I think. looks like this is all more for terminal anyway?

@oberon-manjaro

This comment has been minimized.

Show comment
Hide comment
@oberon-manjaro

oberon-manjaro Mar 8, 2017

Collaborator

the on/off property in the terminal btw works fine - for bold text, no color change! 😉

Collaborator

oberon-manjaro commented Mar 8, 2017

the on/off property in the terminal btw works fine - for bold text, no color change! 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment