Skip to content
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

can't get dclicker symbols to display #247

Open
decentjohn opened this issue Jun 2, 2022 · 2 comments
Open

can't get dclicker symbols to display #247

decentjohn opened this issue Jun 2, 2022 · 2 comments

Comments

@decentjohn
Copy link
Contributor

I have the dclicker seeming to work, except that the << < > >> symbols are not appearing. I've spent about 2h reading code, trying things, can't figure it out. Hoping you can assist.

The dclicker line below is what I've added to de1_skin_settings.tcl. The first line below is for context/placement only, the 2nd line is the "action".

add_de1_variable "settings_2c2" 70 750 -text "" -font Helv_8 -fill "#4e85f4" -anchor "nw" -width 600 -justify "left" -textvariable {[return_stop_at_volume_measurement $::settings(final_desired_shot_volume_advanced)]}

dui add dclicker "settings_2c2" 1670 930 -bwidth 610  -bheight 75 -tags final_desired_shot_volume_advanced -orient h -style default \
	-labelvariable {[return_stop_at_volume_measurement $::settings(final_desired_shot_volume_advanced)]} \
	-variable ::settings(final_desired_shot_volume_advanced) -min 0 -max 2000 -default 5 -n_decimals 0 \
	-smallincrement 1 -bigincrement 10 -editor_page yes -editor_page_title [translate "Stop at water volume"]	

As you can see from the video, it appears to be fully functional. I've tried this below, and it themes the label, but not the symbols, which appear to simply not display.

	dui aspect set [subst {
		dclicker_symbol2.fill #FF0000
		dclicker_symbol2.font_size 18
	
		dclicker_label.font_size 18
		dclicker_label.fill #FF0000
		dclicker_label.anchor center
		dclicker_label.justify center
	}]
	
IMG_0693.mov
@ebengoechea
Copy link
Collaborator

@decentjohn
The problem lies in that I didn't define a set of "default" aspects for dclickers, only for the specific styles used in DYE, so no symbols are defined for the arrows and thus they are not painted.

Using the styles in DYE, this would get you going, but I should rather add this as defaults for dclickers in dui.tcl, which I'll do in a PR:

dui aspect set -theme default -type dclicker set {
	orient horizontal use_biginc 1 
	symbol chevron-double-left symbol1 chevron-left 
	symbol2 chevron-right symbol3 chevron-double-right 
}

dui aspect set -theme default  {
	dclicker_symbol.pos {0.075 0.5} dclicker_symbol.font_size 24 dclicker_symbol.anchor center dclicker_symbol.fill "#7f879a" 
	dclicker_symbol1.pos {0.275 0.5} dclicker_symbol1.font_size 24 dclicker_symbol1.anchor center dclicker_symbol1.fill "#7f879a"  
	dclicker_symbol2.pos {0.725 0.5} dclicker_symbol2.font_size 24 dclicker_symbol2.anchor center dclicker_symbol2.fill "#7f879a" 
	dclicker_symbol3.pos {0.925 0.5} dclicker_symbol3.font_size 24 dclicker_symbol3.anchor center dclicker_symbol3.fill "#7f879a" 
}

@decentjohn
Copy link
Contributor Author

that works for me, I'll approve the PR when it comes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants