mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
10781dcf5f
Modified color_get_*() so they do not need "imgtype" parameter. ColorBar class is public (defined in colbar.h). Added ColorBar::Fg/BgColorChange signals. Converted palette editor widget to a C++ class (PalEdit derived from Widget). Modified the "Palette Editor" (F4 key) to be non-modal (still WIP).
85 lines
3.2 KiB
XML
85 lines
3.2 KiB
XML
<!-- ASE - Allegro Sprite Editor -->
|
|
<!-- Copyright (C) 2001-2009 by David Capello -->
|
|
<jinete>
|
|
<window text="Palette Editor" name="palette_editor">
|
|
<box vertical="true">
|
|
<box horizontal="true" expansive="true">
|
|
<box vertical="true">
|
|
<view name="palette_editor" /> <!-- custom-widget -->
|
|
</box>
|
|
<box vertical="true" expansive="true">
|
|
<box horizontal="true" childspacing="0" noborders="true">
|
|
<radio group="1" text="RGB" name="select_rgb" looklike="button" selected="true" />
|
|
<radio group="1" text="HSV" name="select_hsv" looklike="button" />
|
|
<box horizontal="true" expansive="true" />
|
|
<button text="+" name="make_bigger" tooltip="More options" />
|
|
</box>
|
|
|
|
<grid columns="3" childspacing="0">
|
|
|
|
<label name="R_label" text="R" />
|
|
<slider name="R_slider" min="0" max="255" cell_align="horizontal" />
|
|
<entry name="R_entry" maxsize="3" />
|
|
|
|
<label name="G_label" text="G" />
|
|
<slider name="G_slider" min="0" max="255" cell_align="horizontal" />
|
|
<entry name="G_entry" maxsize="3" />
|
|
|
|
<label name="B_label" text="B" />
|
|
<slider name="B_slider" min="0" max="255" cell_align="horizontal" />
|
|
<entry name="B_entry" maxsize="3" />
|
|
|
|
<label name="H_label" text="H" />
|
|
<slider name="H_slider" min="0" max="255" cell_align="horizontal" />
|
|
<entry name="H_entry" maxsize="3" />
|
|
|
|
<label name="S_label" text="S" />
|
|
<slider name="S_slider" min="0" max="255" cell_align="horizontal" />
|
|
<entry name="S_entry" maxsize="3" />
|
|
|
|
<label name="V_label" text="V" />
|
|
<slider name="V_slider" min="0" max="255" cell_align="horizontal" />
|
|
<entry name="V_entry" maxsize="3" />
|
|
|
|
<label name="hex_label" text="#" />
|
|
<box horizontal="true" cell_hspan="2" >
|
|
<entry name="hex_entry" maxsize="6" />
|
|
</box>
|
|
|
|
</grid>
|
|
|
|
<!-- <box name="colorviewer_box" expansive="true" /> <\!-- custom-widget -\-> -->
|
|
<!-- <button text="Select &All" name="select_all" /> -->
|
|
<!-- <box vertical="true"> -->
|
|
<!-- <box horizontal="true" homogeneous="true"> -->
|
|
<!-- <button text="&Undo" name="undo" /> -->
|
|
<!-- <button text="&Redo" name="redo" /> -->
|
|
<!-- </box> -->
|
|
<!-- <box horizontal="true" homogeneous="true"> -->
|
|
<!-- <button text="&Load" name="load" /> -->
|
|
<!-- <button text="&Save" name="save" /> -->
|
|
<!-- </box> -->
|
|
<!-- <box horizontal="true" homogeneous="true"> -->
|
|
<!-- <button text="&Ramp" name="ramp" /> -->
|
|
<!-- <button text="&Quantize" name="quantize" /> -->
|
|
<!-- </box> -->
|
|
<!-- </box> -->
|
|
</box>
|
|
</box>
|
|
<!-- <box horizontal="true"> -->
|
|
<!-- <label text="Frame:" /> -->
|
|
<!-- <slider min="0" max="1" name="frame" expansive="true" /> -->
|
|
<!-- </box> -->
|
|
|
|
<!-- <box horizontal="true"> -->
|
|
<!-- <\!-- <check name="all_frames" text="All frames the same palette" /> -\-> -->
|
|
<!-- <box horizontal="true" expansive="true" /> -->
|
|
<!-- <box horizontal="true" homogeneous="true"> -->
|
|
<!-- <button text="&OK" name="button_ok" magnetic="true" width="60" /> -->
|
|
<!-- <button text="&Cancel" /> -->
|
|
<!-- </box> -->
|
|
<!-- </box> -->
|
|
</box>
|
|
</window>
|
|
</jinete>
|