After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 749158 - Various UI improvements
Various UI improvements
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: general
3.17.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
: 761493 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-05-09 15:07 UTC by Trinh Anh Ngoc
Modified: 2017-09-19 07:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Various UI improvements (117.99 KB, patch)
2015-05-09 15:07 UTC, Trinh Anh Ngoc
none Details | Review
Mail view screenshot (231.96 KB, image/png)
2015-05-09 15:14 UTC, Trinh Anh Ngoc
  Details
Calendar day view screenshot (108.83 KB, image/png)
2015-05-09 15:16 UTC, Trinh Anh Ngoc
  Details
Work week calendar view screenshot (119.56 KB, image/png)
2015-05-09 15:18 UTC, Trinh Anh Ngoc
  Details
Calendar week view screenshot (123.80 KB, image/png)
2015-05-09 15:20 UTC, Trinh Anh Ngoc
  Details
Calendar month view screenshot (125.81 KB, image/png)
2015-05-09 15:23 UTC, Trinh Anh Ngoc
  Details
Calendar list view screenshot (135.72 KB, image/png)
2015-05-09 15:24 UTC, Trinh Anh Ngoc
  Details
Mail view dark screenshot (201.59 KB, image/png)
2015-05-09 15:26 UTC, Trinh Anh Ngoc
  Details
Day view dark screenshot (112.39 KB, image/png)
2015-05-09 15:34 UTC, Trinh Anh Ngoc
  Details
Calendar work week view dark screenshot (119.54 KB, image/png)
2015-05-09 15:35 UTC, Trinh Anh Ngoc
  Details
Calendar week view dark screenshot (119.54 KB, image/png)
2015-05-09 15:36 UTC, Trinh Anh Ngoc
  Details
Calendar week view dark screenshot (124.03 KB, image/png)
2015-05-09 15:39 UTC, Trinh Anh Ngoc
  Details
Calendar month view dark screenshot (120.46 KB, image/png)
2015-05-09 15:40 UTC, Trinh Anh Ngoc
  Details
Calendar list view dark screenshot (114.82 KB, image/png)
2015-05-09 15:41 UTC, Trinh Anh Ngoc
  Details
Compose message dialog screenshot (138.37 KB, image/png)
2015-05-09 15:43 UTC, Trinh Anh Ngoc
  Details
Appointment dialog screenshot (122.85 KB, image/png)
2015-05-09 15:44 UTC, Trinh Anh Ngoc
  Details
(Before patch) Calendar week view screenshot (128.03 KB, image/png)
2015-05-12 09:04 UTC, Trinh Anh Ngoc
  Details
(Before patch) Calendar week view screenshot 2 (135.85 KB, image/png)
2015-05-12 09:07 UTC, Trinh Anh Ngoc
  Details
Layout improvements (32.41 KB, patch)
2015-05-18 17:55 UTC, Trinh Anh Ngoc
none Details | Review
Modernize mini calendar (13.71 KB, patch)
2015-05-18 17:56 UTC, Trinh Anh Ngoc
none Details | Review
Modernize calendar view (52.62 KB, patch)
2015-05-18 17:57 UTC, Trinh Anh Ngoc
none Details | Review
Layout improvements (32.03 KB, patch)
2015-05-19 10:05 UTC, Trinh Anh Ngoc
none Details | Review
Modernize mini calendar (15.96 KB, patch)
2015-05-19 10:08 UTC, Trinh Anh Ngoc
none Details | Review
Compose message screenshot (14.74 KB, image/png)
2015-05-19 10:09 UTC, Trinh Anh Ngoc
  Details
Compose message screenshot (123.95 KB, image/png)
2015-05-19 10:11 UTC, Trinh Anh Ngoc
  Details
Mini calendar screenshot (14.74 KB, image/png)
2015-05-19 10:13 UTC, Trinh Anh Ngoc
  Details
Calendar view improvements (7.81 KB, patch)
2015-05-19 14:57 UTC, Trinh Anh Ngoc
none Details | Review
Calendar view screenshot (499.53 KB, image/png)
2015-05-19 15:01 UTC, Trinh Anh Ngoc
  Details
Fix mini calendar button style on hover (785 bytes, patch)
2015-09-04 03:34 UTC, Trinh Anh Ngoc
none Details | Review
Fix EMailConfigAssistant UI (1.38 KB, patch)
2015-09-04 03:35 UTC, Trinh Anh Ngoc
none Details | Review
Screenshot - Mini calendar buttons on hover (26.50 KB, image/png)
2015-09-04 03:37 UTC, Trinh Anh Ngoc
  Details
Screenshot - EMailConfigAssistant (35.88 KB, image/png)
2015-09-04 03:39 UTC, Trinh Anh Ngoc
  Details
Fix mini calendar button style on hover (805 bytes, patch)
2015-09-15 08:34 UTC, Trinh Anh Ngoc
committed Details | Review
Fix EMailConfigAssistant UI (1.39 KB, patch)
2015-09-15 08:48 UTC, Trinh Anh Ngoc
none Details | Review
Tweak EMailConfigAssistant UI (1.47 KB, patch)
2015-09-16 01:30 UTC, Trinh Anh Ngoc
committed Details | Review

Description Trinh Anh Ngoc 2015-05-09 15:07:29 UTC
Created attachment 303130 [details] [review]
Various UI improvements

Continue my efforts after bug 747729 ( https://bugzilla.gnome.org/show_bug.cgi?id=747729 ).

Things that are improved: main shell, calendar views, dialogs, dark theme variant, ...
Comment 1 Trinh Anh Ngoc 2015-05-09 15:14:44 UTC
Created attachment 303131 [details]
Mail view screenshot
Comment 2 Trinh Anh Ngoc 2015-05-09 15:16:22 UTC
Created attachment 303132 [details]
Calendar day view screenshot
Comment 3 Trinh Anh Ngoc 2015-05-09 15:18:05 UTC
Created attachment 303133 [details]
Work week calendar view screenshot
Comment 4 Trinh Anh Ngoc 2015-05-09 15:20:48 UTC
Created attachment 303134 [details]
Calendar week view screenshot
Comment 5 Trinh Anh Ngoc 2015-05-09 15:23:33 UTC
Created attachment 303135 [details]
Calendar month view screenshot
Comment 6 Trinh Anh Ngoc 2015-05-09 15:24:45 UTC
Created attachment 303136 [details]
Calendar list view screenshot
Comment 7 Trinh Anh Ngoc 2015-05-09 15:26:55 UTC
Created attachment 303137 [details]
Mail view dark screenshot
Comment 8 Trinh Anh Ngoc 2015-05-09 15:34:17 UTC
Created attachment 303138 [details]
Day view dark screenshot
Comment 9 Trinh Anh Ngoc 2015-05-09 15:35:58 UTC
Created attachment 303139 [details]
Calendar work week view dark screenshot
Comment 10 Trinh Anh Ngoc 2015-05-09 15:36:54 UTC
Created attachment 303140 [details]
Calendar week view dark screenshot
Comment 11 Trinh Anh Ngoc 2015-05-09 15:39:37 UTC
Created attachment 303141 [details]
Calendar week view dark screenshot
Comment 12 Trinh Anh Ngoc 2015-05-09 15:40:19 UTC
Created attachment 303142 [details]
Calendar month view dark screenshot
Comment 13 Trinh Anh Ngoc 2015-05-09 15:41:13 UTC
Created attachment 303143 [details]
Calendar list view dark screenshot
Comment 14 Trinh Anh Ngoc 2015-05-09 15:43:17 UTC
Created attachment 303144 [details]
Compose message dialog screenshot
Comment 15 Trinh Anh Ngoc 2015-05-09 15:44:43 UTC
Created attachment 303145 [details]
Appointment dialog screenshot
Comment 16 Milan Crha 2015-05-11 17:18:05 UTC
Thanks for a bug report and patch. I didn't read it yet, only compiled. I see these compiler warnings:

---------------------------------------------------------------------------

e-table-click-to-add.c: In function 'etcta_style_updated':
e-table-click-to-add.c:82:19: warning: unused variable 'text' [-Wunused-variable]
  GdkColor fg, bg, text;
                   ^
e-table-click-to-add.c: In function 'create_rect_and_text':
e-table-click-to-add.c:261:19: warning: unused variable 'text' [-Wunused-variable]
  GdkColor fg, bg, text;
                   ^
e-day-view-main-item.c: In function 'day_view_main_item_draw_day_event':
e-day-view-main-item.c:202:10: warning: variable 'date_fraction' set but not used [-Wunused-but-set-variable]
  gdouble date_fraction;
          ^
e-day-view-main-item.c:193:39: warning: variable 'bar_y1' set but not used [-Wunused-but-set-variable]
  gint item_x, item_y, item_w, item_h, bar_y1, bar_y2;
                                       ^
e-day-view-main-item.c: At top level:
e-day-view-main-item.c:603:1: warning: 'day_view_main_item_draw_events_in_vbars' defined but not used [-Wunused-function]
 day_view_main_item_draw_events_in_vbars (EDayViewMainItem *main_item,
 ^

---------------------------------------------------------------------------

None should be there. The scary one is the last, about unused function. You do not need to remove it.
Comment 17 Milan Crha 2015-05-11 17:25:16 UTC
Review of attachment 303130 [details] [review]:

I thought some of the things I noticed in your screen shots are due to your theme, but I see they are not (I miss a comparision in the screen shots, have "before and after" states beside each other. So:
a) I do not like circles in the mini calendar
b) the flat events look odd as well
c) add an alarm into the event and see what it looks like in various views
d) the tool bar looks too tiny, like not following my theme
e) colors in the day/work week views are not good in the "all day events" area, it is not distinguishable

There might be probably more things, I noticed only these on the first look. All these changes should be properly discussed first, they are not like the really small UI changes from your previous bug report.
Comment 18 Trinh Anh Ngoc 2015-05-12 04:37:29 UTC
Yes, i just test on GNOME theme (Adwaita). What is your theme ?
Comment 19 Milan Crha 2015-05-12 06:15:54 UTC
I do not use gnome-shell, thus my theme is from a different desktop. It's called BlueMenta. Anyway, this is not about used theme, I just did think it is, but it isn't.
Comment 20 Trinh Anh Ngoc 2015-05-12 08:07:48 UTC
I just tested BlueMenta theme

a) What shape do you like ?

b) ...

c) ... Look good for me :)

d) I set toolbar icon size to small because toolbar have larger padding in GNOME, i will revert this change if needed.

e) What is your suggestion ?
Comment 21 Trinh Anh Ngoc 2015-05-12 09:04:54 UTC
Created attachment 303248 [details]
(Before patch) Calendar week view screenshot
Comment 22 Trinh Anh Ngoc 2015-05-12 09:07:22 UTC
Created attachment 303249 [details]
(Before patch) Calendar week view screenshot 2
Comment 23 Milan Crha 2015-05-13 09:33:00 UTC
(In reply to Trinh Anh Ngoc from comment #3)
> Created attachment 303133 [details]
> Work week calendar view screenshot

(In reply to Trinh Anh Ngoc from comment #21)
> Created attachment 303248 [details]
> (Before patch) Calendar week view screenshot

Compare these two pictures. I see a difference in the third+ column (Wen 25) in the tiny column on the left.

(In reply to Trinh Anh Ngoc from comment #20)
> a) What shape do you like ?

I like the way it was.

> b) ...

It can be that some people like flat view, while other (like me) the shaded view. It's a good candidate for an option.

> c) ... Look good for me :)

It's slightly off the event on the left for me.

> d) I set toolbar icon size to small because toolbar have larger padding in
> GNOME, i will revert this change if needed.

Please do revert that change.

> e) What is your suggestion ?

Have the "all days events" area distinguishable, like it is before your change. Otherwise it looks like an inactive area where users cannot do anything, which is not true.

I know I wanted from you to merge multiple small patches into one patch in bug #747729, the reason was that the consolidated patch was still small, but it's not the case here (the patch here is like 10 times bigger than the previous one), thus I'd prefer to split it into logic parts (and eventually bug reports, but not necessarily). You cannot hide so many UI changes into one "Various UI improvements" commit, it'll be better to name them. We can use the points from the above (a)..e)), and/or add more of them. Feel free to suggest the parts, then you can split and enhance the patch as we'll agree on it.

Just to not have (only) a negative impression from my response, the sharper drawing of the calendar views looks pretty good, more modern with your change.
Comment 24 Trinh Anh Ngoc 2015-05-18 17:53:58 UTC
Ok, i split into 3 patches:

1. Layout improvements (margins, borders, etc)
2. Modernize mini calendar
3. Modernize calendar view

=> Evolution UI looks good now :)
Comment 25 Trinh Anh Ngoc 2015-05-18 17:55:20 UTC
Created attachment 303545 [details] [review]
Layout improvements
Comment 26 Trinh Anh Ngoc 2015-05-18 17:56:44 UTC
Created attachment 303546 [details] [review]
Modernize mini calendar
Comment 27 Trinh Anh Ngoc 2015-05-18 17:57:25 UTC
Created attachment 303547 [details] [review]
Modernize calendar view
Comment 28 Trinh Anh Ngoc 2015-05-18 18:18:38 UTC
Screenshot http://i61.tinypic.com/jb67fp.png

Left: before
Right: after
Comment 29 Trinh Anh Ngoc 2015-05-18 18:25:31 UTC
Sorry, full size : http://postimg.org/image/3ld0lxf73/full
Comment 30 Milan Crha 2015-05-19 06:27:46 UTC
Thanks for the update. From the screen shot:

a) the composer's text area lost its border, which looks odd (also comparing to your effort to add borders on other places, like toolbars). Similar with the attachment panel's content there.

b) the all-day area is still almost the same color as inactive border (I did mention it earlier), it should be better distinguishable that the are can do something (it's here only slightly lighter, which is hard to recognize)

c) mini-calendar - do not use circles, but squares, please (also mentioned earlier)

d) work-week doesn't highlight "Event B" time in the left thin column, like for example the Event A is highlighted (from that I suppose the patches still claim compile-time warnings, unless you removed the function which should stay there and be used instead).

e) if I see correctly then you did not add an option to use shaded or non-shaded event drawings into the Calendar Preferences, right?
Comment 31 Trinh Anh Ngoc 2015-05-19 10:05:04 UTC
Created attachment 303578 [details] [review]
Layout improvements

Added borders to compose message text box.
Comment 32 Trinh Anh Ngoc 2015-05-19 10:08:14 UTC
Created attachment 303579 [details] [review]
Modernize mini calendar

Curved rectangle
Comment 33 Trinh Anh Ngoc 2015-05-19 10:09:04 UTC
Created attachment 303580 [details]
Compose message screenshot
Comment 34 Trinh Anh Ngoc 2015-05-19 10:11:40 UTC
Created attachment 303581 [details]
Compose message screenshot
Comment 35 Trinh Anh Ngoc 2015-05-19 10:13:02 UTC
Created attachment 303582 [details]
Mini calendar screenshot
Comment 36 Trinh Anh Ngoc 2015-05-19 14:57:33 UTC
Created attachment 303602 [details] [review]
Calendar view improvements

I only tweak a bit on current calendar view to fit to rest of ui.
Comment 37 Trinh Anh Ngoc 2015-05-19 15:01:17 UTC
Created attachment 303603 [details]
Calendar view screenshot
Comment 38 Milan Crha 2015-05-25 11:57:47 UTC
(In reply to Trinh Anh Ngoc from comment #35)
> Created attachment 303582 [details]
> Mini calendar screenshot

The main thing about the mini calendar, from my point of view, is that when multiple days are selected, then it is a continuous interval, not a single-selected set of days. Similar to selection of a text, it would look awkward to have empty gaps between letters. As I said, it's just my point of view.

Alan, what do you think, please?
Comment 39 Milan Crha 2015-05-25 12:04:20 UTC
(In reply to Trinh Anh Ngoc from comment #36)
> Created attachment 303602 [details] [review] [review]
> Calendar view improvements
> 
> I only tweak a bit on current calendar view to fit to rest of ui.

See the Day View, where the icons are too high, looking out of alignment for the first line of the text. Some cases can draw the icons not horizontally, but vertically instead. That's when the event is taking long enough and there are many icons (turn on categories for the event).

Still, I'm fine with flat events, if it's an option. If it's too hard (unnecessary code duplication or code maintenance needed), then let's do only this change.
Comment 40 Milan Crha 2015-05-25 12:08:06 UTC
Review of attachment 303578 [details] [review]:

This one looks fine, thus I committed it. The other two patches here are under discussion.

Created commit c0761d4 in evo master (3.17.3+)
Comment 41 Milan Crha 2015-09-03 12:04:55 UTC
Trinh, will you have time to work on the above requests, or I should just close this bug as done, please?
Comment 42 Trinh Anh Ngoc 2015-09-04 03:34:47 UTC
Created attachment 310622 [details] [review]
Fix mini calendar button style on hover
Comment 43 Trinh Anh Ngoc 2015-09-04 03:35:55 UTC
Created attachment 310623 [details] [review]
Fix EMailConfigAssistant UI
Comment 44 Trinh Anh Ngoc 2015-09-04 03:37:30 UTC
Created attachment 310624 [details]
Screenshot - Mini calendar buttons on hover
Comment 45 Trinh Anh Ngoc 2015-09-04 03:39:25 UTC
Created attachment 310625 [details]
Screenshot - EMailConfigAssistant
Comment 46 Milan Crha 2015-09-07 11:47:04 UTC
Thanks for the update. I'll review this later, evolution is currently under UI freeze, thus this would be committed for ~3.19.1.
Comment 47 Milan Crha 2015-09-14 12:42:11 UTC
Review of attachment 310622 [details] [review]:

Apart of the below question looks fine.

::: shell/e-shell-window.c
@@ +123,3 @@
+}\
+ECalendar .button:hover {\
+   color: red;\

What about using
   color: @theme_selected_bg_color;
instead of the hard-coded red color?
Comment 48 Milan Crha 2015-09-14 12:47:45 UTC
Review of attachment 310623 [details] [review]:

Needs-work due to the memory leak.

::: mail/e-mail-config-assistant.c
@@ +1137,3 @@
+
+	action_area = gtk_buildable_get_internal_child (GTK_BUILDABLE (assistant),
+							gtk_builder_new (),

This leaks the GtkBuilder instance

@@ +1140,3 @@
+							"action_area");
+	if (action_area)
+		gtk_container_set_border_width (GTK_CONTAINER (action_area), 12);

Is it a good idea to change anything on this internal object? I see it is documented on the GtkAssistant object, but as it's an internal child, it looks like not being good to change. Also, the change can cause a diverge from the theme settings, if any overrides this border size.
Comment 49 Trinh Anh Ngoc 2015-09-15 08:34:37 UTC
Created attachment 311330 [details] [review]
Fix mini calendar button style on hover

Use @theme_selected_bg_color instead of hard-coded color
Comment 50 Trinh Anh Ngoc 2015-09-15 08:48:15 UTC
Created attachment 311332 [details] [review]
Fix EMailConfigAssistant UI

Fix memory leak

AFAIK, GtkAssistant action area border cannot be changed by theme
Comment 51 Trinh Anh Ngoc 2015-09-16 01:30:12 UTC
Created attachment 311425 [details] [review]
Tweak EMailConfigAssistant UI
Comment 52 Milan Crha 2015-09-16 09:35:44 UTC
Thanks for a quick update. The patches looks fine, and if there is not any better option, then let's have the GtkAssistant code there. I noticed that gtk3 3.16.x has its own border on the action area, while to be 3.18.0 doesn't. It's no big deal. I'll commit the patches (probably as one) after the hard code freeze. Thanks again for our help with this.
Comment 53 Milan Crha 2015-09-16 09:36:16 UTC
(In reply to Milan Crha from comment #52)
> Thanks again for our help with this.

s/our/your/
Comment 54 Milan Crha 2015-09-21 13:59:06 UTC
I merged the two patches into one commit:

Created commit d1990b8 in evo master (3.19.1+)
Comment 55 Milan Crha 2016-02-18 12:42:08 UTC
*** Bug 761493 has been marked as a duplicate of this bug. ***
Comment 56 Milan Crha 2017-09-19 07:17:02 UTC
Just for your information, with commit 9ce1a78148 (3.27.1+) the events are drawn as flat by default in the Calendar views, with added option to change it:

   $ gsettings set org.gnome.evolution.calendar draw-flat-events false