Merge lp:~mttronchetti/novacut/grafix into lp:novacut

Proposed by Matteo Ronchetti
Status: Merged
Merged at revision: 290
Proposed branch: lp:~mttronchetti/novacut/grafix
Merge into: lp:novacut
Diff against target: 470 lines (+303/-112)
3 files modified
ui/common.css (+169/-0)
ui/projects.html (+131/-109)
ui/projects.js (+3/-3)
To merge this branch: bzr merge lp:~mttronchetti/novacut/grafix
Reviewer Review Type Date Requested Status
Jason Gerard DeRose Approve
James Raymond Pending
Review via email: mp+123441@code.launchpad.net

Description of the change

In the trash menu I've changed the search bar because it was too different from the other elements of the ui.
I've also fixed a small problem in the representation of projects inside that menu because before the thumbnails didn't have any margin.
In the top bar I've made the first color of the gradient a little bit lighter because the bar was too dark.
I've also changed how input and buttons look

To post a comment you must log in.
lp:~mttronchetti/novacut/grafix updated
292. By Matteo Ronchetti

some graphics improovments

293. By Matteo Ronchetti

added shadow to the top bar and a small explainaton in the bin

294. By Matteo Ronchetti

fix quantal problems

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

Nice work, Matteo, thanks! And thanks for fixing some of the Quantal rendering issues.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'ui/common.css'
2--- ui/common.css 1970-01-01 00:00:00 +0000
3+++ ui/common.css 2012-09-23 10:31:22 +0000
4@@ -0,0 +1,169 @@
5+* {
6+ margin: 0px;
7+ padding: 0px;
8+ line-height: 1.5;
9+ text-shadow: 0 1px 2px rgba(0,0,0,0.6);
10+}
11+
12+body{
13+ background:#333;
14+ color:white;
15+ overflow:hidden;
16+}
17+
18+video{
19+ background:black;
20+}
21+
22+.head {
23+ height: 39px;
24+ background: -webkit-linear-gradient(top, rgb(62, 30, 72), rgb(34, 5, 42));
25+ box-shadow: 0 0 40px rgba(0,0,0,0.55);
26+ border-bottom:1px solid #222;
27+}
28+
29+.project {
30+ margin: 8px;
31+ display: inline-block;
32+ background: -webkit-linear-gradient(top, #555, #444);
33+ color: white;
34+ font-size: 0;
35+ box-shadow: 0 3px 12px rgba(0,0,0,0.3);
36+ border-radius:3px;
37+ border-top:1px solid #666;
38+ cursor: default;
39+ -webkit-user-select: none;
40+ padding:3px !important;
41+ padding-top:2px !important;
42+ -webkit-animation:appear 50ms ease-in-out 1;
43+}
44+
45+.project.selected {
46+ background: -webkit-linear-gradient(top, #8c5159, #555);
47+ border-top:1px solid #777;
48+ box-shadow: 0px 2px 5px 1px rgba(0,0,0,0.3), 0px 0px 1px 0px #e81f3b;
49+}
50+
51+.project .thumbnail {
52+ width: 80px;
53+ height: 80px;
54+ background-position: center center;
55+ background-size: cover;
56+ background-color: #222;
57+ border-radius: 3px;
58+}
59+
60+.project > div {
61+ display: inline-block;
62+ vertical-align: top;
63+}
64+
65+.project p {
66+ font-size: 14px;
67+ padding-left: 5px;
68+ overflow: hidden;
69+ white-space: nowrap;
70+ width: 218px;
71+ color: #ddd;
72+ box-sizing: border-box !important;
73+}
74+
75+.project p.title {
76+ font-weight: bold;
77+ color: white;
78+}
79+
80+.darkbar{
81+ background: -webkit-linear-gradient(top, #222, #111);
82+ border-top: 1px solid #333;
83+ text-shadow: 0px -1px rgba(0,0,0,0.6);
84+}
85+
86+.bar{
87+ background: -webkit-linear-gradient(top, #444, #333);
88+ border-top: 1px solid #555;
89+ text-shadow: 0px -1px rgba(0,0,0,0.5);
90+}
91+
92+.lightbar{
93+ background: -webkit-linear-gradient(top, #666, #555);
94+ border-top: 1px solid #777;
95+ text-shadow: 0px -1px rgba(0,0,0,0.4);
96+}
97+
98+.lower{
99+ background: -webkit-linear-gradient(top, #222, #333);
100+ border-top: 1px solid #282828;
101+}
102+
103+input {
104+ padding-left: 4px;
105+ line-height: 22px;
106+ color: #ddd;
107+ border-radius: 8px;
108+ box-shadow: 0 3px 5px rgba(0,0,0,0.4) inset,0 1px 0 rgba(255,255,255,0.3);
109+ border:none 0;
110+ background: rgba(68, 68, 68,0.95);
111+ padding: 1px 9px 0px;
112+ -webkit-transition:background 100ms ease-in-out;
113+}
114+
115+
116+button {
117+ border:1px solid rgba(0,0,0,0.8);
118+ line-height: 24px;
119+ color: #ddd;
120+ text-shadow:0px -1px 0px rgba(0,0,0,0.5);
121+ background:-webkit-linear-gradient(top, rgb(90,90,90), rgb(50,50,50));
122+ border-radius: 7px;
123+ font-weight: normal;
124+ max-width:200px;
125+}
126+
127+button:hover{
128+ color:#fff;
129+ box-shadow: none;
130+ background:-webkit-linear-gradient(top, rgb(80,80,80), rgb(40,40,40));
131+}
132+
133+button:disabled:hover{
134+ color:rgba(255,255,255,0.4);
135+}
136+
137+button:disabled {
138+ font-weight: normal;
139+ font-style:normal;
140+ color:rgba(255,255,255,0.3);
141+ text-shadow:0px -1px rgba(0,0,0,0.4);
142+}
143+
144+button:active{
145+ background:-webkit-linear-gradient(top, #333, #222);
146+ text-shadow:0px -1px 1px rgba(0,0,0,0.3);
147+ color:#ccc;
148+}
149+
150+button:focus {
151+ /*box-shadow: 0px 1px 1px rgba(0,0,0,0.7), 0px 0px 1px #e81f3b;*/
152+ outline:none;
153+}
154+
155+input:focus, textarea:focus, .inset:focus{
156+ /*box-shadow: inset 0px 1px 5px rgba(0,0,0,0.7), 0px 0px 1px #e81f3b;*/
157+ outline:none;
158+}
159+
160+button:focus{
161+ /*background:-webkit-linear-gradient(top, #5d2b32, #333);*/
162+}
163+
164+@-webkit-keyframes appear{
165+ 0% {
166+ -webkit-transform: scale(1) translate(0px, -3px);
167+ opacity:0;
168+ }
169+ 100% {
170+ -webkit-transform: scale(1) translate(0px, 0px);
171+ opacity:1;
172+ }
173+}
174
175=== modified file 'ui/projects.html'
176--- ui/projects.html 2012-07-19 10:18:29 +0000
177+++ ui/projects.html 2012-09-23 10:31:22 +0000
178@@ -2,7 +2,6 @@
179 <html>
180 <head>
181 <link rel="stylesheet" href="/_apps/dmedia/grid.css">
182- <link rel="stylesheet" href="/_apps/dmedia/common.css" />
183 <link rel="stylesheet" href="common.css" />
184 <script src="/_apps/userwebkit/couch.js"></script>
185 <script src="/_apps/userwebkit/base.js"></script>
186@@ -53,123 +52,146 @@
187 ev.preventDefault();
188 }
189 </script>
190- <style>
191- .el{
192- cursor: move;
193- }
194-#menu{
195- float: right;
196- padding: 3px 8px 0 0;
197- list-style: none;
198- cursor: default;
199-}
200-
201-#menu img{
202-width: 31px;
203-margin-top: -7px;
204-margin-right: -8px;
205--webkit-animation-duration: .8s;
206- -webkit-animation-iteration-count: 1;
207- -webkit-animation-timing-function: linear;
208-
209-}
210-#menu li{
211- float: left;
212- padding: 0 0 10px 0;
213- position: relative;
214-}
215-
216-#menu li:hover > a{
217- color: #fafafa;
218-}
219-#menu li:hover > #bi{
220+<style>
221+ .el{
222+ cursor: move;
223+ }
224+ #menu{
225+ float: right;
226+ padding: 3px 8px 0 0;
227+ list-style: none;
228+ cursor: default;
229+ }
230+
231+ #menu img{
232+ width: 31px;
233+ margin-top: -7px;
234+ margin-right: -8px;
235+ -webkit-animation-duration: .8s;
236+ -webkit-animation-iteration-count: 1;
237+ -webkit-animation-timing-function: linear;
238+
239+ }
240+ #menu li{
241+ float: left;
242+ padding: 0 0 10px 0;
243+ position: relative;
244+ }
245+
246+ #menu li:hover > a{
247+ color: #fafafa;
248+ }
249+ #menu li:hover > #bi{
250+ display: block;
251+ }
252+
253+ #bi{ /*container*/
254+ min-width: 320px;
255+ min-height: 26px;
256+ list-style: none;
257+ margin: -1px -308px;
258+ padding: 4px;
259+ display: none;
260+ position: absolute;
261+ top: 39px;
262+ left: 0;
263+ z-index: 99999;
264+ background: -webkit-linear-gradient(top,rgb(87,87,87),rgb(65,65,65));
265+ border-radius: 10px;
266+ box-shadow: 0 10px 50px rgba(0,0,0,0.5);
267+ }
268+
269+ #menu input{
270+ /*width: 282px;
271+ margin: 6px 3px 2px 5px;
272+ border-radius: 15px;
273+ background: -webkit-linear-gradient(top,#E6E6E6,#FAFAFA);
274+ border: solid 1px rgba(0, 0, 0, 0.72);
275+ box-shadow: none;
276+ padding-left: 28px;
277+ color: black;*/
278+ width: 285px;
279+ margin: 7px 3px 0px 5px;
280+ border-radius: 13px;
281+ background: url(search16d.png) no-repeat 8px 5px rgba(0, 0, 0, 0.13);
282+ border: none 0;
283+ box-shadow: 0 1px 0 rgba(255,255,255,0.2),0 1px 3px rgba(0,0,0,0.35) inset;
284+ height: 25px;
285+ font-size: 15px;
286+ padding-left: 29px;
287+ }
288+
289+ #lens{
290+ margin-left: -313px;
291+ margin-bottom: -11px;
292+ }
293+ #menu ul ul li{ /* projects*/
294+ float: none;
295+ margin: 10px;
296+ padding: 0;
297 display: block;
298-}
299-
300-#bi{ /*container*/
301- min-width: 320px;
302- min-height: 26px;
303- list-style: none;
304- margin: 0px -302px;
305- padding: 4px;
306- display: none;
307- position: absolute;
308- top: 39px;
309- left: 0;
310- z-index: 99999;
311- background: -webkit-linear-gradient(top,rgb(87,87,87),rgb(65,65,65));
312- border-radius: 10px;
313- box-shadow: 1px 1px 10px rgba(0,0,0,0.5);
314-}
315-
316-#menu input{
317- width: 282px;
318- margin: 6px 3px 2px 5px;
319- border-radius: 15px;
320- background: -webkit-linear-gradient(top,#E6E6E6,#FAFAFA);
321- border: solid 1px rgba(0, 0, 0, 0.72);
322- box-shadow: none;
323- padding-left: 28px;
324- color: black;
325-}
326-
327-#lens{
328-margin-left: -313px;
329-margin-bottom: -11px;
330-}
331-#menu ul ul li{ /* projects*/
332- float: none;
333- margin: 10px;
334- padding: 0;
335- display: block;
336- cursor: move;
337-}
338-
339-#menu ul:after{
340- border-bottom-color: #444;
341-}
342-
343-.project{
344--webkit-animation-duration: 0.3s;
345- -webkit-animation-iteration-count: 1;
346- -webkit-animation-timing-function: cubic-bezier(0.4,0,0.8,1);
347-}
348-
349-.project img{
350-opacity: 0.7;
351-}
352-
353-.project img:hover{
354-opacity: 1;
355-}
356-
357-#cont p{
358-margin: 5px;
359-margin-left: 7px;
360-text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
361-}
362-
363-#inv{/*invisible div used to make bin menu easier to use*/
364-height:60px;
365-width:300px;
366-margin-top:-60px;
367-}
368-
369- </style>
370+ cursor: move;
371+ }
372+
373+ #menu ul:after{
374+ border-bottom-color: #444;
375+ }
376+
377+ #menu .project{
378+ margin-left: 9px;
379+ box-shadow: 0 2px 5px rgba(0,0,0,0.4);
380+ }
381+
382+ .project{
383+ -webkit-animation-duration: 300ms;
384+ -webkit-animation-iteration-count: 1;
385+ -webkit-animation-timing-function: cubic-bezier(0.4,0,0.8,1);
386+ }
387+
388+ .project img{
389+ opacity: 0.6;
390+ }
391+
392+ .project img:hover{
393+ opacity: 1;
394+ }
395+
396+ #cont p{
397+ margin: 5px;
398+ text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
399+ }
400+
401+ #inv{/*invisible div used to make bin menu easier to use*/
402+ height:60px;
403+ width:330px;
404+ margin-top:-60px;
405+ }
406+
407+ #help{
408+ font-size: 12px;
409+ color: rgba(255,255,255,0.6);
410+ text-shadow: none,0 0 1px rgba(0,0,0,0.1) !important;
411+ margin-left: 11px !important;
412+ margin-bottom: -6px !important;
413+ margin-top: 3px !important;
414+ }
415+</style>
416 </head>
417 <body>
418 <form id="new_project" class="head">
419 <div class="grid_row">
420 <input placeholder="New project name" type="text" class="grid_4" autofocus>
421 <button class="grid_4" disabled>Create Project</button>
422- <ul id="menu"><li>
423+ <ul id="menu">
424+ <li>
425 <img src="bin2.png" class="ico" id="ico"/>
426- <ul id="bi">
427- <div id="inv"></div>
428- <div id="cont"></div>
429- <ul id="list"></ul>
430+ <ul id="bi">
431+ <div id="inv"></div>
432+ <div id="cont"></div>
433+ <ul id="list"></ul>
434+ </ul>
435+ </li>
436 </ul>
437- </li></ul>
438 </div>
439 </form>
440 <ul style="min-width = 800px;" id="projects" ondragenter="enter(event)" ondragleave="leave(event)" ondrop="d(event)" ondragover="over(event);"></ul>
441
442=== modified file 'ui/projects.js'
443--- ui/projects.js 2012-07-19 10:18:29 +0000
444+++ ui/projects.js 2012-09-23 10:31:22 +0000
445@@ -48,9 +48,9 @@
446 UI.proj.style.height = window.innerHeight-50+"px";
447
448
449- UI.binDesc ="<p>Here you can find your removed projects<br>Click on <img style=\"width:13px;\" src=\"delete.png\"></img>&nbsp;&nbsp;&nbsp;to remove a project<br>Drag a project out of here to restore it</p>";
450+ UI.binDesc ="<p>Here You Can Find Your Removed Projects<br>Click on <img style=\"width:13px;\" src=\"delete.png\"></img>&nbsp;&nbsp;&nbsp;to Remove a Project<br>Drag a Project Out of Here to Restore It</p>";
451 UI.binMax = 5;
452- UI.binSearch = "<input id=\"s\" onkeyup=\"UI.Search()\"><img id=\"lens\" src=\"search.png\"></img></input>";
453+ UI.binSearch = "<input id=\"s\" onkeyup=\"UI.Search()\" autofocus/><p id='help'>To restore a project drag it out of here</p>";
454
455 UI.removed = new Array();
456 UI.load_items();
457@@ -155,7 +155,7 @@
458 generateAnimation(end.x-pos.x,end.y-pos.y-30);
459 this.parentNode.style.webkitAnimationName = "arg";
460 var s = this;
461- setTimeout(function(){s.parentNode.parentNode.removeChild(s.parentNode)},320,s);
462+ setTimeout(function(){s.parentNode.parentNode.removeChild(s.parentNode)},300,s);
463 Hub.send('delete_project', id)
464 var doc = novacut.get_sync(id)
465 UI.removed.push(Array(id,doc.title,doc.time,countFiles(id)));
466
467=== removed file 'ui/search.png'
468Binary files ui/search.png 2012-07-16 13:34:04 +0000 and ui/search.png 1970-01-01 00:00:00 +0000 differ
469=== added file 'ui/search16d.png'
470Binary files ui/search16d.png 1970-01-01 00:00:00 +0000 and ui/search16d.png 2012-09-23 10:31:22 +0000 differ

Subscribers

People subscribed via source and target branches

to all changes:
to status/vote changes: