bin: do not hardcode images from HighContrast theme

Use some placeholder simple filled cairo shapes instead.
parent 91a19642
......@@ -46,6 +46,24 @@ static void update_grid_dim (GeState *o)
hack_cols = mrg_width (o->mrg) / hack_dim;
}
static void draw_left_triangle (Mrg *mrg, float x, float y, float w, float h)
{
cairo_t *cr = mrg_cr (mrg);
cairo_new_path (cr);
cairo_new_path (cr);
cairo_move_to (cr, x+0.9*w, y+0.1*h);
cairo_line_to (cr, x+0.9*w, y+0.9*h);
cairo_line_to (cr, x+0.1*w, y+0.5*h);
}
static void draw_folder (Mrg *mrg, float x, float y, float w, float h)
{
cairo_t *cr = mrg_cr (mrg);
cairo_new_path (cr);
cairo_rectangle (cr, 0.00 *w + x, 0.00 * h + y, 0.33 * w, 0.10 * h);
cairo_rectangle (cr, 0.00 *w + x, 0.10 * h + y, 0.66 * w, 0.66 * h);
}
static void on_viewer_motion (MrgEvent *e, void *data1, void *data2)
{
......@@ -273,9 +291,15 @@ void ui_collection (GeState *o)
}
mrg_listen_full (mrg, MRG_CLICK, ui_run_command, "parent", NULL, NULL, NULL);
draw_left_triangle (mrg, x + (dim-wdim)/2 + dim * padding, y + (dim-hdim)/2 + dim * padding,
wdim * (1.0-padding*2), hdim *(1.0-padding*2));
cairo_set_source_rgba (mrg_cr (mrg), 1,1,1,.5);
cairo_fill (mrg_cr (mrg));
#if 0
mrg_image (mrg, x + (dim-wdim)/2 + dim * padding, y + (dim-hdim)/2 + dim * padding,
wdim * (1.0-padding*2), hdim *(1.0-padding*2), 1.0,
"/usr/share/icons/HighContrast/256x256/actions/go-up.png", NULL, NULL);
#endif
cairo_new_path (mrg_cr(mrg));
mrg_set_xy (mrg, x, y + dim - mrg_em(mrg) * 2);
......@@ -311,9 +335,15 @@ void ui_collection (GeState *o)
cairo_fill (mrg_cr (mrg));
}
draw_folder (mrg, x + (dim-wdim)/2 + dim * padding, y + (dim-hdim)/2 + dim * padding,
wdim * (1.0-padding*2), hdim *(1.0-padding*2));
cairo_set_source_rgba (mrg_cr (mrg), 1,1,1,.5);
cairo_fill (mrg_cr (mrg));
#if 0
mrg_image (mrg, x + (dim-wdim)/2 + dim * padding, y + (dim-hdim)/2 + dim * padding,
wdim * (1.0-padding*2), hdim *(1.0-padding*2), 1.0,
"/usr/share/icons/HighContrast/256x256/places/folder.png", NULL, NULL);
#endif
is_dir = 1;
}
......
......@@ -14,7 +14,7 @@ dnl set GEGL_BINARY_AGE _and_ GEGL_INTERFACE_AGE to 0.
m4_define([gegl_major_version], [0])
m4_define([gegl_minor_version], [4])
m4_define([gegl_micro_version], [13])
m4_define([gegl_micro_version], [14])
m4_define([gegl_real_version],
[gegl_major_version.gegl_minor_version.gegl_micro_version])
m4_define([gegl_version], [gegl_real_version])
......
GEGL-0.4.14 2019-03-xx
GEGL-0.4.14 2019-03-01
----------------------
Core
......@@ -74,8 +74,9 @@ graph/property editor has been added, and migration/extension to lua has begun
for parts of the code.
WARNING: many parts of the UI is of exploratory proof of concept/alpha quality
but released since it is part of the GEGL repository and useful development
tools both for creating and testing new GEGL operations as well as GEGL itself.
but are released since the code is part of the GEGL repository and important
development tools both for creating and testing new GEGL operations as well as
GEGL itself.
Some screenshots showing some the process towards the state and capabilties of
the UI in this release can be seen at https://www.patreon.com/posts/24123574
......@@ -112,6 +113,16 @@ Ray, elad, Ell, Jehan, Marco Ciampa, Michael Natterer, Øyvind Kolås, Piotr
Drąg, Richard B. Kreckel, Rodrigo Lledó, sabri ünal, thetoastcaper, Thomas
Manni and woob.
This release depends on the new features of babl-0.1.62 which has the following
change summary for the last release:
Continuous integration with gitlab.
Initial CMYK spaces with lcms2 based ICC support, much room for optimization.
Improved custom space support for palette formats.
scRGB space, works like sRGB but always with linear TRCs.
Model introspection API permitting low overhead checks whether a format/model
is RGB, CMYK type of alpha and similar.
GEGL-0.4.12 2018-10-23
----------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment