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 696078 - We need specific incognito/private mode styling
We need specific incognito/private mode styling
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-03-18 16:28 UTC by Jakub Steiner
Modified: 2014-01-11 16:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
blue tint + watermark on incognito windows. (52.71 KB, image/png)
2014-01-02 13:54 UTC, Jakub Steiner
  Details
Make incognito image a resource (3.78 KB, patch)
2014-01-02 21:26 UTC, William Jon McCann
committed Details | Review
Use a custom style for incognito mode (15.88 KB, patch)
2014-01-02 21:26 UTC, William Jon McCann
committed Details | Review

Description Jakub Steiner 2013-03-18 16:28:46 UTC
Reusing the dark theme for private mode poses a few issues, giving poor example to other apps as to when to use it. We should aim to create a special styling for it.
Comment 1 Adam Dingle 2013-04-05 10:50:35 UTC
Also, in some environments (e.g. Ubuntu Unity with its default Ambiance theme) there is no visually distinguished dark theme, and so incognito windows look just like ordinary windows.  So I think they should certainly be distinguished in some other way.  Just appending "(Private Browsing)" to the window title might be good enough (or at least a good start).
Comment 2 erusan 2013-04-05 23:14:05 UTC
Adam, I think other themes should provide their own dark theme alternative if needed. If just adding "(Private Browsing)" to the window title is sufficient, then the color of the window doesn't matter -- it will still be indicated in the title.

I think it would be bad design to differentiate the private window only with text in the titlebar, however. That's difficult to see at a glance, and it makes application switching more tedious when users have to scan through similar window labels to find "(Private Browsing)" so they can differentiate which window is which.

Color is the most user-friendly way of differentiating the windows. I think the concern about "giving poor example to other apps" is overblown, but any color would work -- dark red, purple, striped, plaid.
Comment 3 Adam Dingle 2013-04-09 23:47:11 UTC
OK.  I've filed an Ubuntu bug for this at

https://bugs.launchpad.net/ubuntu-gnome/+bug/1167070
Comment 4 William Jon McCann 2013-12-31 22:26:09 UTC
Jakub, do you have anything particular in mind for this?
Comment 5 Jakub Steiner 2014-01-02 12:30:42 UTC
We could remain neutral grey, just slightly darker than the default Adwaita and perhaps with a watermark on the headerbar. I'll mock something up.
Comment 6 Jakub Steiner 2014-01-02 13:54:21 UTC
Created attachment 265134 [details]
blue tint + watermark on incognito windows.
Comment 7 William Jon McCann 2014-01-02 21:26:15 UTC
Created attachment 265189 [details] [review]
Make incognito image a resource
Comment 8 William Jon McCann 2014-01-02 21:26:18 UTC
Created attachment 265190 [details] [review]
Use a custom style for incognito mode
Comment 9 Yosef Or Boczko 2014-01-02 22:00:36 UTC
This style is very beautiful!

I just wondering if the eye in the toolbar, in RTL language
need to be in the right side istean of the left side.
Comment 10 Claudio Saavedra 2014-01-03 15:13:27 UTC
Review of attachment 265189 [details] [review]:

Good.
Comment 11 Claudio Saavedra 2014-01-03 15:17:24 UTC
Review of attachment 265190 [details] [review]:

Looks good, except for that. Didn't test though, I hope you did!

::: src/ephy-window.c
@@ +3207,3 @@
+	if (app_mode == EPHY_EMBED_SHELL_MODE_INCOGNITO) {
+		gtk_style_context_add_class (gtk_widget_get_style_context (toolbar), "incognito-mode");
+	}

No need for brackets.
Comment 12 Claudio Saavedra 2014-01-03 15:18:39 UTC
(In reply to comment #9)
> This style is very beautiful!
> 
> I just wondering if the eye in the toolbar, in RTL language
> need to be in the right side istean of the left side.

That's a good question, but I really have no idea of how the images affect RTL. What is your take?
Comment 13 William Jon McCann 2014-01-03 18:04:09 UTC
Attachment 265189 [details] pushed as 2c5a06f - Make incognito image a resource
Attachment 265190 [details] pushed as d0af7ce - Use a custom style for incognito mode
Comment 14 Yosef Or Boczko 2014-01-04 17:42:27 UTC
(In reply to comment #12)
> (In reply to comment #9)
> > This style is very beautiful!
> > 
> > I just wondering if the eye in the toolbar, in RTL language
> > need to be in the right side istean of the left side.
> 
> That's a good question, but I really have no idea of how the images affect RTL.
> What is your take?

The image not need to change, just the place of the image
need to be replaced.
This mean - the same image, just instead of in the left side,
in RTL in the right side.
Comment 15 Jean-François Fortin Tam 2014-01-11 16:38:46 UTC
I find this interesting. Since we don't rely on the dark theme for incognito mode anymore, is there a way for Epiphany to enforce the use of the light theme variant even if the user tweaked the global dark theme setting? In order to fix/workaround bug #695388 which in turn is a workaround for bug #602217