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 610393 - apply same style on hover for places and app
apply same style on hover for places and app
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2010-02-18 19:58 UTC by Diska
Modified: 2010-05-05 15:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
place style look like app style (504 bytes, patch)
2010-02-18 19:58 UTC, Diska
needs-work Details | Review
apply hovet style for place and recent (1.71 KB, patch)
2010-02-22 19:28 UTC, Diska
needs-work Details | Review
Another one but button are not expanded and with more left right padding (2.44 KB, patch)
2010-02-22 23:30 UTC, Diska
none Details | Review
Another one but button are not expanded and with more left right padding (3.24 KB, patch)
2010-02-23 17:53 UTC, Diska
none Details | Review
Strange space before name on stbutton label (222.76 KB, image/png)
2010-02-23 20:10 UTC, Diska
  Details
new patch for latest git (1.83 KB, patch)
2010-03-26 17:56 UTC, Diska
none Details | Review
another patch with bit different theme (2.44 KB, patch)
2010-03-26 19:42 UTC, Diska
needs-work Details | Review
conflict resolved (1.49 KB, patch)
2010-03-29 16:39 UTC, Diska
none Details | Review
conflict resolved with git 750672061aabd5d443614770d39ab698508ccb65 (1.33 KB, patch)
2010-03-31 16:12 UTC, Diska
reviewed Details | Review
Add same style for app, place , recent (1.70 KB, patch)
2010-05-04 04:30 UTC, Diska
needs-work Details | Review
Add same style for app, place , recent (2.09 KB, patch)
2010-05-04 21:45 UTC, Diska
none Details | Review
[dash] Make the style for places and recent items similar to apps (1.92 KB, patch)
2010-05-05 15:41 UTC, Owen Taylor
committed Details | Review

Description Diska 2010-02-18 19:58:59 UTC
Created attachment 154168 [details] [review]
place style look like app style

initial revision, tell me if you like it
Comment 1 Owen Taylor 2010-02-22 18:22:08 UTC
Marking for design review. Presumably if this change was made, we'd want to do the same for Recent Items .. doesn't seem to make sense to have Places and Recent items different.

Patch needs some obvious fixes (indentation, shouldn't move /* Places */ comment), but fine for testing.
Comment 2 Diska 2010-02-22 19:00:49 UTC
ok the patch was only to know if it can't be the right way. not ready to be committed
Comment 3 Diska 2010-02-22 19:28:55 UTC
Created attachment 154428 [details] [review]
apply hovet style for place and recent
Comment 4 Diska 2010-02-22 19:33:45 UTC
latest patch use and identical style for place and recent

St.label in original function don't use style option so i use an st.button instead of a label ( changed alignment too )  like already done in placeDisplay.js
Comment 5 Florian Müllner 2010-02-22 21:27:42 UTC
(In reply to comment #4)
> St.label in original function don't use style option so i use an st.button
> instead of a label ( changed alignment too )  like already done in
> placeDisplay.js

St.Label does support styling, it just doesn't know about pseudo classes (:hover). Porting docDisplay to St.Button is not necessarily a bad idea, but you should be aware that right now it breaks drag-n-drop (see bug 609218), so I suggest postponing this transition until that is fixed.
Comment 6 Diska 2010-02-22 23:30:40 UTC
Created attachment 154458 [details] [review]
Another one but button are not expanded and with more left right padding
Comment 7 Diska 2010-02-23 17:53:38 UTC
Created attachment 154529 [details] [review]
Another one but button are not expanded and with more left right padding

this patch enable the 'button-release-event' on St.Button
Comment 8 Diska 2010-02-23 20:10:49 UTC
Created attachment 154542 [details]
Strange space before name on stbutton label

if i use St.Button instead of St.Label only in the file you can see on image are show some space before label, it's strange because there's no space on filename and it's happen only for this file.
Comment 9 Dan Winship 2010-03-26 14:13:19 UTC
Comment on attachment 154428 [details] [review]
apply hovet style for place and recent

>-        let name = new St.Label({ style_class: 'dash-recent-docs-item',
>-                                   text: docInfo.name });
>+        let name = new St.Button({ style_class: 'dash-recent-docs-item',
>+                                   label: docInfo.name,
>+                                   x_align: St.Align.START });

With latest git, you should be able to use an St.Label still. Just set the "reactive" and "track_hover" properties to true, and it will use the hover pseudo-class as needed. Hopefully that should fix the problem in your screenshot too.
Comment 10 Diska 2010-03-26 17:56:35 UTC
Created attachment 157200 [details] [review]
new patch for latest git

i made this new patch
Comment 11 Diska 2010-03-26 19:42:54 UTC
Created attachment 157209 [details] [review]
another patch with bit different theme
Comment 12 Colin Walters 2010-03-29 15:14:42 UTC
Review of attachment 157209 [details] [review]:

This one conflicts with Florian's changes in https://bugzilla.gnome.org/show_bug.cgi?id=610385

Let's resolve it after that lands.  Marking needs-work until then.
Comment 13 Diska 2010-03-29 16:39:26 UTC
Created attachment 157393 [details] [review]
conflict resolved

new patch after last commit
Comment 14 Diska 2010-03-31 16:12:27 UTC
Created attachment 157607 [details] [review]
conflict resolved with git   	750672061aabd5d443614770d39ab698508ccb65
Comment 15 Owen Taylor 2010-05-03 21:24:56 UTC
This looks good, and I think we can go ahead and apply it 

(http://live.gnome.org/GnomeShell/Design/Whiteboards/FindingAndReminding has some big changes in this area, but this is an improvement for now.)

To apply it, we need it attached as a git commit rather than a raw diff. See:

 http://live.gnome.org/GnomeShell/Development/WorkingWithPatches

For more information about how to do this.
Comment 16 Owen Taylor 2010-05-03 21:25:37 UTC
Comment on attachment 157607 [details] [review]
conflict resolved with git   	750672061aabd5d443614770d39ab698508ccb65

Marking needs-work pending reformatting.
Comment 17 Diska 2010-05-04 04:30:08 UTC
Created attachment 160241 [details] [review]
Add same style for app, place , recent
Comment 18 Diska 2010-05-04 04:42:47 UTC
sorry my email was wrong on attach.
Comment 19 Diska 2010-05-04 06:39:19 UTC
Review of attachment 157607 [details] [review]:

reviwed and committed new one https://bugzilla.gnome.org/attachment.cgi?id=160241
Comment 20 Diska 2010-05-04 06:41:53 UTC
sorry for mistake, i wanted to mark attach 157607 as reviewed.

the correct one is attach 160241
Comment 21 Owen Taylor 2010-05-04 18:08:01 UTC
Review of attachment 160241 [details] [review]:

Please read the email about commit message style at:

 http://lists.cairographics.org/archives/cairo/2008-September/015092.html

(Linked to from http://live.gnome.org/GnomeShell/Development/WorkingWithPatches)

You can edit your commit message with 'git commit --amend' before reattaching a new patch.
Comment 22 Diska 2010-05-04 21:45:02 UTC
Created attachment 160298 [details] [review]
Add same style for app, place , recent

https://bugzilla.gnome.org/show_bug.cgi?id=610393

 Author:    Discardi Nicola <discardi.nicola@gmail.com>
	modified:   data/theme/gnome-shell.css

 gnome-shell.css was modified to apply same style for application,place
 and recent.
 I start this work because i don't like default theme and wasn't a way to
 understand when place or item in recent was selected or not.

 On branch master
 Your branch is ahead of 'origin/master' by 1 commit.
Comment 23 Diska 2010-05-04 21:46:03 UTC
ok i use git format  git bz  i insert what and why. 

i forget something?
Comment 24 Owen Taylor 2010-05-05 15:41:04 UTC
Created attachment 160352 [details] [review]
[dash] Make the style for places and recent items similar to apps
Comment 25 Owen Taylor 2010-05-05 15:44:12 UTC
Attachment 160352 [details] pushed as 39a24b9 - [dash] Make the style for places and recent items similar to apps