2 #define SUGGESTION_TIMEOUT 2.5
5 image: "icon.png" COMP;
6 image: "video-display.png" COMP;
7 image: "display.png" COMP;
8 image: "display-glass-shine.png" COMP;
12 item: "disabled_output_width" "1024";
13 item: "disabled_output_height" "768";
18 // The icon used in the settings dialog
28 aspect_preference: BOTH;
29 image.normal: "icon.png";
35 /**********************************************/
36 /*********Subdialog - Arrangement**************/
37 /**********************************************/
39 //The graphical representation of a single monitor, including its decorations
41 name: "e/conf/randr/dialog/subdialog/arrangement/output";
45 name: "display_name_text";
46 base: "font=Sans:style=Bold font_size=10 text_class=tb_plain align=center valign=center color=#fff style=soft_shadow shadow_color=#0000001f wrap=word";
48 tag: "hilight" "+ font=Sans:style=Bold text_class=tb_light";
62 image.normal: "display.png";
63 rel1.relative: 0.0 0.0;
64 rel2.relative: 1.0 1.0;
69 name: "e.swallow.content";
70 type: SWALLOW; // background of CRTC's zone
74 aspect_preference: BOTH;
75 color: 255 255 255 255;
78 relative: 0.047379 0.049303;
82 //relative: 0.97 0.657804;
88 state: "disabled" 0.0;
89 inherit: "default" 0.0;
90 color: 255 255 255 128;
95 name: "output_selected_frame_clip";
100 state: "default" 0.0;
101 color: 255 255 255 0;
103 rel1.relative: 0.0 0.0;
104 rel2.relative: 1.0 1.0;
107 state: "selected" 0.0;
108 inherit: "default" 0.0;
109 color: 255 255 255 255;
114 name: "output_selected_frame_border_top";
116 clip_to: "output_selected_frame_clip";
120 state: "default" 0.0;
121 color: 128 128 128 255;
127 to: "output_selected_frame_clip";
131 to: "output_selected_frame_clip";
133 offset: 0 BORDERSIZE;
139 name: "output_selected_frame_border_right";
141 clip_to: "output_selected_frame_clip";
145 state: "default" 0.0;
146 color: 128 128 128 255;
152 to_x: "output_selected_frame_clip";
153 to_y: "output_selected_frame_border_top";
155 offset: (-BORDERSIZE-1) 0;
158 to_x: "output_selected_frame_clip";
159 to_y: "output_selected_frame_border_bottom";
166 name: "output_selected_frame_border_bottom";
168 clip_to: "output_selected_frame_clip";
172 state: "default" 0.0;
173 color: 128 128 128 255;
179 to: "output_selected_frame_clip";
181 offset: 0 (-BORDERSIZE-1);
184 to: "output_selected_frame_clip";
191 name: "output_selected_frame_border_left";
193 clip_to: "output_selected_frame_clip";
197 state: "default" 0.0;
198 color: 128 128 128 255;
204 to_x: "output_selected_frame_clip";
205 to_y: "output_selected_frame_border_top";
209 to_x: "output_selected_frame_clip";
210 to_y: "output_selected_frame_border_bottom";
212 offset: BORDERSIZE 0;
218 name: "output_selected_frm_inside";
220 clip_to: "output_selected_frame_clip";
224 state: "default" 0.0;
225 color: 255 255 255 120;
228 to: "output_selected_frame_clip";
229 offset: BORDERSIZE BORDERSIZE;
232 to: "output_selected_frame_clip";
233 offset: -BORDERSIZE -BORDERSIZE;
239 name: "output_txt_bg";
241 //clip_to: "output_txt_clip";
245 state: "default" 0.0;
246 color: 255 255 255 128;
261 state: "selected" 0.0;
262 inherit: "default" 0.0;
270 //clip_to: "output_txt_clip";
275 state: "default" 0.0;
277 // define part coordinates:
278 //rel1.to: "output_txt_clip";
279 //rel2.to: "output_txt_clip";
280 rel1.to: "e.swallow.content";
281 rel2.to: "e.swallow.content";
284 style: "display_name_text";
291 state: "selected" 0.0;
292 inherit: "default" 0.0;
293 color: 255 255 255 255;
298 name: "selected_toggle_on";
303 state: "default" 0.0;
308 to: "e.swallow.content";
312 to: "e.swallow.content";
318 state: "disable" 0.0;
319 inherit: "default" 0.0;
325 name: "selected_toggle_off";
330 state: "default" 0.0;
335 to: "selected_toggle_on";
339 to: "selected_toggle_on";
345 state: "disable" 0.0;
346 inherit: "default" 0.0;
352 name: "display-glass-shine";
356 state: "default" 0.0;
357 image.normal: "display-glass-shine.png";
364 signal: "mouse,down,1";
365 source: "selected_toggle_on";
367 action: STATE_SET "selected" 0.0;
368 transition: LINEAR 0.1;
369 //target: "e.swallow.content";
370 //target: "output_selected_clip";
371 target: "output_txt";
372 target: "output_txt_bg";
373 target: "output_selected_frame_clip";
378 signal: "mouse,clicked,1";
379 source: "selected_toggle_off";
381 action: STATE_SET "default" 0.0;
382 transition: LINEAR 0.1;
383 //target: "e.swallow.content";
384 //target: "output_selected_clip";
385 target: "output_txt";
386 target: "output_txt_bg";
387 target: "output_selected_frame_clip";
391 name: "selected_toggle_off_on";
392 signal: "mouse,clicked,1";
393 source: "selected_toggle_on";
394 action: STATE_SET "disable" 1.0;
395 target: "selected_toggle_on";
396 target: "selected_toggle_off";
400 name: "selected_toggle_on_off";
401 signal: "mouse,clicked,1";
402 source: "selected_toggle_off";
403 action: STATE_SET "default" 1.0;
404 target: "selected_toggle_on";
405 target: "selected_toggle_off";
409 name: "emit_highlight";
426 action: STATE_SET "disabled" 0.0;
427 target: "e.swallow.content";
434 action: STATE_SET "default" 0.0;
435 target: "e.swallow.content";
446 //This group describes the look of the suggestion entity used, when a monitor
447 //representation is dragged. Its size matches the size of the monitor
450 name: "e/conf/randr/dialog/subdialog/arrangement/suggestion";
452 item: "distance_min" "20";
457 public fade_out_timer_id = 0;
459 public suggestion_fade_out ()
461 cancel_timer(get_int(fade_out_timer_id));
462 run_program(PROGRAM:"hide");
472 state: "default" 0.0;
473 color: 255 255 255 0;
474 rel1.relative: 0.0 0.0;
475 rel2.relative: 1.0 1.0;
478 state: "visible" 0.0;
479 inherit: "default" 0.0;
480 color: 255 255 255 255;
487 clip_to: "shape_clip";
489 state: "default" 0.0;
491 rel1.to: "shape_clip";
492 rel2.to: "shape_clip";
498 name: "show_transition";
501 action: STATE_SET "visible" 0.0;
502 target: "shape_clip";
503 transition: LINEAR 0.2;
511 new i = timer(SUGGESTION_TIMEOUT, "suggestion_fade_out", 0);
512 set_int(fade_out_timer_id, i);
520 action: STATE_SET "default" 0.0;
521 target: "shape_clip";
522 transition: LINEAR 0.2;
527 /**********************************************/
528 /************Subdialog - Policies**************/
529 /**********************************************/
531 name: "e/conf/randr/dialog/subdialog/policies";
534 name: "current_displays_setup/clipper";
538 state: "default" 0.0;
540 rel1.relative: 0.25 0.25;
541 rel2.relative: 0.75 0.75;
545 inherit: "default" 0.0;
546 color: 255 255 255 255;
547 rel1.relative: 0.25 0.5;
548 rel2.relative: 0.75 1.0;
552 inherit: "default" 0.0;
553 color: 255 255 255 255;
554 rel1.relative: 0.0 0.25;
555 rel2.relative: 0.5 0.75;
559 inherit: "default" 0.0;
560 color: 255 255 255 255;
561 rel1.relative: 0.25 0.0;
562 rel2.relative: 0.75 0.5;
566 inherit: "default" 0.0;
567 color: 255 255 255 255;
568 rel1.relative: 0.5 0.25;
569 rel2.relative: 1.0 0.75;
573 inherit: "default" 0.0;
574 color: 255 255 255 255;
578 inherit: "default" 0.0;
579 color: 255 255 255 255;
583 name: "current_displays_setup.swallow.content";
585 clip_to: "current_displays_setup/clipper";
587 state: "default" 0.0;
588 rel1.to: "current_displays_setup/clipper";
589 rel2.to: "current_displays_setup/clipper";
593 name: "new_display/clipper";
597 state: "default" 0.0;
599 rel1.relative: 0.25 0.25;
600 rel2.relative: 0.75 0.75;
604 inherit: "default" 0.0;
606 rel1.relative: 0.25 0.0;
607 rel2.relative: 0.75 0.5;
610 state: "above_visible" 0.0;
611 inherit: "above" 0.0;
612 color: 255 255 255 255;
616 inherit: "default" 0.0;
618 rel1.relative: 0.5 0.25;
619 rel2.relative: 1.0 0.75;
622 state: "right_visible" 0.0;
623 inherit: "right" 0.0;
624 color: 255 255 255 255;
628 inherit: "default" 0.0;
630 rel1.relative: 0.25 0.5;
631 rel2.relative: 0.75 1.0;
634 state: "below_visible" 0.0;
635 inherit: "below" 0.0;
636 color: 255 255 255 255;
640 inherit: "default" 0.0;
642 rel1.relative: 0.0 0.25;
643 rel2.relative: 0.5 0.75;
646 state: "left_visible" 0.0;
648 color: 255 255 255 255;
652 inherit: "default" 0.0;
656 state: "clone_visible" 0.0;
657 inherit: "clone" 0.0;
658 color: 255 255 255 255;
662 inherit: "default" 0.0;
666 state: "none_visible" 0.0;
668 color: 255 255 255 255;
672 name: "new_display.swallow.content";
674 clip_to: "new_display/clipper";
676 state: "default" 0.0;
677 rel1.to: "new_display/clipper";
678 rel2.to: "new_display/clipper";
683 * The signals emitted to the UI are encoded as their corresponding value
686 * Policy = Signal emitted
687 * ECORE_X_RANDR_OUTPUT_POLICY_ABOVE = 1
688 * ECORE_X_RANDR_OUTPUT_POLICY_RIGHT = 2
689 * ECORE_X_RANDR_OUTPUT_POLICY_BELOW = 3
690 * ECORE_X_RANDR_OUTPUT_POLICY_LEFT = 4
691 * ECORE_X_RANDR_OUTPUT_POLICY_CLONE = 5
692 * ECORE_X_RANDR_OUTPUT_POLICY_NONE = 6
696 name: "new_display_hide";
697 signal: "conf,randr,dialog,policies,*";
699 action: STATE_SET "default" 0.0;
700 target: "new_display/clipper";
703 name: "current_displays_setup_clipper_above";
704 signal: "conf,randr,dialog,policies,1";
706 action: STATE_SET "above" 0.0;
707 target: "current_displays_setup/clipper";
708 target: "new_display/clipper";
709 after: "new_display_above_visible_set";
710 transition: LINEAR 0.5;
713 name: "new_display_above_visible_set";
714 action: STATE_SET "above_visible" 0.0;
715 target: "new_display/clipper";
716 transition: LINEAR 0.5;
719 name: "current_displays_setup_clipper_right";
720 signal: "conf,randr,dialog,policies,2";
722 action: STATE_SET "right" 0.0;
723 target: "current_displays_setup/clipper";
724 target: "new_display/clipper";
725 after: "new_display_right_visible_set";
726 transition: LINEAR 0.5;
729 name: "new_display_right_visible_set";
730 action: STATE_SET "right_visible" 0.0;
731 target: "new_display/clipper";
732 transition: LINEAR 0.5;
735 name: "current_displays_setup_clipper_below";
736 signal: "conf,randr,dialog,policies,3";
738 action: STATE_SET "below" 0.0;
739 target: "current_displays_setup/clipper";
740 target: "new_display/clipper";
741 after: "new_display_below_visible_set";
742 transition: LINEAR 0.5;
745 name: "new_display_below_visible_set";
746 action: STATE_SET "below_visible" 0.0;
747 target: "new_display/clipper";
748 transition: LINEAR 0.5;
751 name: "current_displays_setup_clipper_left";
752 signal: "conf,randr,dialog,policies,4";
754 action: STATE_SET "left" 0.0;
755 target: "current_displays_setup/clipper";
756 target: "new_display/clipper";
757 after: "new_display_left_visible_set";
758 transition: LINEAR 0.5;
761 name: "new_display_left_visible_set";
762 action: STATE_SET "left_visible" 0.0;
763 target: "new_display/clipper";
764 transition: LINEAR 0.5;
767 name: "current_displays_setup_clipper_clone";
768 signal: "conf,randr,dialog,policies,5";
770 action: STATE_SET "clone" 0.0;
771 target: "current_displays_setup/clipper";
772 target: "new_display/clipper";
773 after: "new_display_clone_visible_set";
774 transition: LINEAR 0.5;
777 name: "new_display_clone_visible_set";
778 action: STATE_SET "clone_visible" 0.0;
779 target: "new_display/clipper";
780 transition: LINEAR 0.5;
783 name: "current_displays_setup_clipper_none";
784 signal: "conf,randr,dialog,policies,6";
786 action: STATE_SET "none" 0.0;
787 target: "current_displays_setup/clipper";
788 target: "new_display/clipper";
789 //after: "new_display_none_visible_set";
790 transition: LINEAR 0.5;
793 * following is an analog program for none, but we don't want to show
796 name: "new_display_none_visible_set";
797 action: STATE_SET "none_visible" 0.0;
798 target: "new_display/clipper";
799 transition: LINEAR 0.5;
805 // Text objects for rotation and reflection
807 name: "e/conf/randr/dialog/subdialog/orientation";
815 state: "default" 0.0;
816 rel1.relative: 0.0 0.0;
817 rel2.relative: 1.0 1.0;
825 state: "default" 0.0;
827 aspect_preference: BOTH;
828 image.normal: "video-display.png";
832 name: "orientation_text";
838 state: "default" 0.0;
839 rel1.relative: 0.0 0.0;
840 rel2.relative: 1.0 0.8;
843 //Maybe use some default theme label text style later
845 font: "Sans:style=Bold";
846 /* Use the Bold style
847 * of the Sans font from
850 /* size in pixels - 10 */
852 /* the text will not determine minimum horizontal
853 * size but WILL determine minimal vertical size
854 * (thus 0 1 - horiz then vert flags) */
855 /* align text to top-left of the region
857 text_class: "title_bar";
858 /* text class - so font and size
859 * can be changed by users */
871 state: "rotate" 0.90;
872 inherit: "default" 0.0;
873 map.rotation.z: 270.0;
876 state: "rotate" 0.180;
877 inherit: "default" 0.0;
878 map.rotation.z: 180.0;
881 state: "rotate" 0.270;
882 inherit: "default" 0.0;
883 map.rotation.z: 90.0;
886 state: "reflect_horizontal" 0.0;
887 inherit: "default" 0.0;
888 map.rotation.y: 180.0;
891 state: "reflect_vertical" 0.0;
892 inherit: "default" 0.0;
893 map.rotation.x: 180.0;
900 signal: "conf,randr,dialog,orientation,current,1";
902 action: STATE_SET "default" 0.0;
903 target: "orientation_text";
904 transition: LINEAR 0.5;
908 signal: "conf,randr,dialog,orientation,current,2";
910 action: STATE_SET "rotate" 0.90;
911 target: "orientation_text";
912 transition: LINEAR 0.5;
916 signal: "conf,randr,dialog,orientation,current,4";
918 action: STATE_SET "rotate" 0.180;
919 target: "orientation_text";
920 transition: LINEAR 0.5;
924 signal: "conf,randr,dialog,orientation,current,8";
926 action: STATE_SET "rotate" 0.270;
927 target: "orientation_text";
928 transition: LINEAR 0.5;
932 signal: "conf,randr,dialog,orientation,current,16";
934 action: STATE_SET "reflect_horizontal" 0.0;
935 target: "orientation_text";
936 transition: LINEAR 0.5;
940 signal: "conf,randr,dialog,orientation,current,32";
942 action: STATE_SET "reflect_vertical" 0.0;
943 target: "orientation_text";
944 transition: LINEAR 0.5;