Re: [Ubuntu-phone] Themes on the phone

2015-03-24 Thread Alan Bell



On 24/03/15 11:07, David Planella wrote:


Hi Alan,

I think the answer here is simply that the roadmap for the HTML5 story 
for the first phones has focused on providing a working Ambiance theme 
to match the QML theme rather than having an extensible theme framework.
Could at least some of the sass stuff be generated by reading whatever 
the QML SystemPalette values are, so at least the HTML stuff stands a 
chance of looking like the QML apps when the theme changes?


In terms of shipping the Ambiance theme locally in the click package, 
I'm not sure this is something that we're recommending in the 
documentation. I know that we are looking at making it easier for 
developers to fetch the HTML5 Ambiance theme corresponding to a given 
framework, so that they can ship it in their clicks if they want to do 
so, but I'm not aware of conversations about making this the preferred 
option.


The webapps folks can probably give us more insights here.


I was kind of hoping that remote web applications could reference
the theme assets of the device through some kind of Sass include,
so I could write something like an admin module for Wordpress or
Joomla or Vtiger or Odoo or Alfresco so that when you log on to
your instance of this software on your Ubuntu server from your
Ubuntu phone everything looks as native as the dialler, flip the
theme on your phone and all your open source remote web apps
respect that theme change. It now seems that there is, and will
be, no theme changing on the phone, which is a bit odd, I was
expecting to do something like link
href=http://localhost/ubuntutheme.css; to pick up a Sass or less
compiled stylesheet that reflected the currently selected theme of
the device.


I'll defer commenting on how this could be accomplished with webapps 
to the experts, but could you not do this today already by writing an 
HTML5 admin app (as opposed to a remote webapp) that uses the 
Wordpress, Joomla or whichever API?
well that means that user would have to decide to install it on the 
handset, configure it to point at their server, turn on the XML api on 
their server for Wordpress and manage updates to their local device 
application separately to their server. Doing it all server-side makes a 
heap more sense to me - and I can get an Ubuntu Phone enhancement module 
in the vtiger and the Joomla! marketplace and so on, no need to worry 
about synchronising API versions between client and server, massively 
reduced maintenance, and it is all just HTML and CSS, nobody needs to 
learn QML and c++. I am really not interested in writing native local 
apps that need installing, I want it to just work and for various free 
software applications and a free software device to be optimised for 
each other. The thing is there is very little user-value in convergence, 
but loads in synergy. If the Ubuntu Phone is the most awesome handset to 
have if you use Free Software on the server then that is a great reason 
to use it. If your phone runs the same desktop shell as your laptop then 
that is kinda interesting, but not compelling.


Alan.
-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-phone] Issues with music player and scope

2015-03-24 Thread sampth kumar krishnan
I'm using Nexus 4(mako). From vivid proposed release 145 onwards, i'm not
able to play the next song in the music player without restarting the phone
i.e. i'm able to play only one song at a time which keeps repeating itself.
I'm also unable to search and play more than one song from the music scope.
Is it happening to anyone else? Is it a bug? can anyone confirm?
-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] Issues with music player and scope

2015-03-24 Thread Victor Thompson
Actually, maybe someone on this list can find a better project to mark as
affected. It seems that a gstreamer update in image 145 is most likely the
cause [1].

1 - http://people.canonical.com/~ogra/touch-image-stats/145.changes

Victor

On Tue, Mar 24, 2015 at 8:39 AM, Victor Thompson victor.thomp...@gmail.com
wrote:

 sampth,

 Thanks for reporting this! I can confirm on vivid image #146. Could you
 file a bug against music-app and media-hub? I think this is either a
 bug in media-hub or somewhere else higher in the stack. I see the following
 in media-hub's log when the system starts to refuse to play music:

 Found audio content
 void
 core::ubuntu::media::ServiceSkeleton::Private::handle_pause_other_sessions(const
 Ptr)
 video_height: 0, video_width: 0
 Requested new system wakelock
 play
 Client died, resetting pipeline
 void gstreamer::Playbin::reset_pipeline()

 Victor


 On Tue, Mar 24, 2015 at 8:33 AM, sampth kumar krishnan 
 tskrish...@gmail.com wrote:

 I'm using Nexus 4(mako). From vivid proposed release 145 onwards, i'm not
 able to play the next song in the music player without restarting the phone
 i.e. i'm able to play only one song at a time which keeps repeating itself.
 I'm also unable to search and play more than one song from the music scope.
 Is it happening to anyone else? Is it a bug? can anyone confirm?

 --
 Mailing list: https://launchpad.net/~ubuntu-phone
 Post to : ubuntu-phone@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~ubuntu-phone
 More help   : https://help.launchpad.net/ListHelp



-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] [Ongoing] Issues with CI Train Spreadsheet

2015-03-24 Thread Tony Espy

On 03/24/2015 04:41 AM, Robert Park wrote:

On Tue, Mar 24, 2015 at 1:18 AM, Alberto Mardegan
alberto.marde...@canonical.com wrote:

Well, I think that this has bit me in the past too. The problem is that
if you pass 013 as the silo number, then it's taken as an octal
number. :-)
Maybe the citrain tool should strip leading 0s.


$ printf %03d 013
011


Well, I feel stupid now. The whole point of using printf was to pad
the zeroes for you ;-)


Damn, that crossed my mind briefly last night, but I was spent, so gave 
it no more thought.


I did confirm this morning that here was a previous silo-011 ppa on the 
device, but after deleting, still hit the same problem.


Mystery solved!


I'm on vacation this week. I'll push a branch for this next week
unless somebody beats me to it. For now just make sure you don't use
leading 0's when you're using the tool.


Thanks for the help.

/t

p.s. since your on vaction, please don't reply till your back!!!



--
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] Issues with music player and scope

2015-03-24 Thread Victor Thompson
sampth,

Thanks for reporting this! I can confirm on vivid image #146. Could you
file a bug against music-app and media-hub? I think this is either a
bug in media-hub or somewhere else higher in the stack. I see the following
in media-hub's log when the system starts to refuse to play music:

Found audio content
void
core::ubuntu::media::ServiceSkeleton::Private::handle_pause_other_sessions(const
Ptr)
video_height: 0, video_width: 0
Requested new system wakelock
play
Client died, resetting pipeline
void gstreamer::Playbin::reset_pipeline()

Victor


On Tue, Mar 24, 2015 at 8:33 AM, sampth kumar krishnan tskrish...@gmail.com
 wrote:

 I'm using Nexus 4(mako). From vivid proposed release 145 onwards, i'm not
 able to play the next song in the music player without restarting the phone
 i.e. i'm able to play only one song at a time which keeps repeating itself.
 I'm also unable to search and play more than one song from the music scope.
 Is it happening to anyone else? Is it a bug? can anyone confirm?

 --
 Mailing list: https://launchpad.net/~ubuntu-phone
 Post to : ubuntu-phone@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~ubuntu-phone
 More help   : https://help.launchpad.net/ListHelp


-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] Themes on the phone

2015-03-24 Thread David Planella
On Tue, Mar 24, 2015 at 10:04 AM, Alan Bell alanb...@ubuntu.com wrote:

 Hi all,

 right now the theme on the phone is located in /usr/share/ubuntu-html5-ui-
 toolkit/0.1/ambiance
 the documentation shows how to create HTML5 apps that reference this
 directly
 https://developer.ubuntu.com/en/apps/html-5/guides/html5-guide/

 !-- Ubuntu UI Style imports - Ambiance theme --
 link 
 href=/usr/share/ubuntu-html5-ui-toolkit/0.1/ambiance/css/appTemplate.css
 rel=stylesheet type=text/css /

 Apparently it is now best practice to scoop this up and pop it in the
 click package of the application rather than reference it from the file
 system, either way, your application is locked for all time to version 0.1
 of Ambiance. If the phone grows some UI for changing the theme then some
 core apps might change but your HTML5 apps won't pick up the changes
 because they are still pointing at the old theme. If you change to a high
 contrast large font accessible theme then your applications won't change.
 We can't develop new themes as click packages and get the whole system to
 respect the theme, each application will do it's own thing.

 Is this the actual design intention? We are locked forever into the
 aesthetic preferences of the design team?


Hi Alan,

I think the answer here is simply that the roadmap for the HTML5 story for
the first phones has focused on providing a working Ambiance theme to match
the QML theme rather than having an extensible theme framework.

In terms of shipping the Ambiance theme locally in the click package, I'm
not sure this is something that we're recommending in the documentation. I
know that we are looking at making it easier for developers to fetch the
HTML5 Ambiance theme corresponding to a given framework, so that they can
ship it in their clicks if they want to do so, but I'm not aware of
conversations about making this the preferred option.

The webapps folks can probably give us more insights here.



 I was kind of hoping that remote web applications could reference the
 theme assets of the device through some kind of Sass include, so I could
 write something like an admin module for Wordpress or Joomla or Vtiger or
 Odoo or Alfresco so that when you log on to your instance of this software
 on your Ubuntu server from your Ubuntu phone everything looks as native as
 the dialler, flip the theme on your phone and all your open source remote
 web apps respect that theme change. It now seems that there is, and will
 be, no theme changing on the phone, which is a bit odd, I was expecting to
 do something like link href=http://localhost/ubuntutheme.css; to pick
 up a Sass or less compiled stylesheet that reflected the currently selected
 theme of the device.


I'll defer commenting on how this could be accomplished with webapps to the
experts, but could you not do this today already by writing an HTML5
admin app (as opposed to a remote webapp) that uses the Wordpress, Joomla
or whichever API?

Cheers,
David
-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] ubuntu phone bq 4.5 how to connecte from ubuntu 14.04?

2015-03-24 Thread Pontus Öhman
Hi!

You need to start the daemon:

adb devices -l

And turn on dev on Phone!

Cheers
Pontus

From: Konrad Hofermailto:konrad.ho...@unibz.it
Sent: ‎24/‎03/‎2015 16:42
To: ubuntu-phone@lists.launchpad.netmailto:ubuntu-phone@lists.launchpad.net
Subject: [Ubuntu-phone] ubuntu phone bq 4.5 how to connecte from ubuntu 14.04?

hi,

I connect my bq 4.5 via usb to Ubuntu 14.04, an filemanager windows
opens: Aquaris E4.5 with 5 folders: Documents, Downloads, Music,
Pictures and Videos.

How can I access via the terminal?

adb shell
error: device not found

lsusb
Bus 001 Device 021: ID 2a47:0c02

Infos:
Developer mode is on, set a passcode!
OS build number: 20
Ubuntu Image part: 20150312

regards, konrad

--
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp
-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-phone] ubuntu phone bq 4.5 how to connecte from ubuntu 14.04?

2015-03-24 Thread Konrad Hofer
hi,

I connect my bq 4.5 via usb to Ubuntu 14.04, an filemanager windows
opens: Aquaris E4.5 with 5 folders: Documents, Downloads, Music,
Pictures and Videos.

How can I access via the terminal?

adb shell
error: device not found

lsusb
Bus 001 Device 021: ID 2a47:0c02

Infos:
Developer mode is on, set a passcode!
OS build number: 20
Ubuntu Image part: 20150312

regards, konrad

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] ubuntu phone bq 4.5 how to connecte from ubuntu 14.04?

2015-03-24 Thread Mike Sheldon
Hi Konrad,

 I don't think the version of adb in 14.04 is aware of the BQ vendor ID
by default (this is patched in 14.10). You should be able to add that
manually by creating a file called: ~/.android/adb_usb.ini containing
the string: 0x2a47

Hope that helps,
 Mike.

On Tue, 2015-03-24 at 16:41 +0100, Konrad Hofer wrote:
 hi,
 
 I connect my bq 4.5 via usb to Ubuntu 14.04, an filemanager windows
 opens: Aquaris E4.5 with 5 folders: Documents, Downloads, Music,
 Pictures and Videos.
 
 How can I access via the terminal?
 
 adb shell
 error: device not found
 
 lsusb
 Bus 001 Device 021: ID 2a47:0c02
 
 Infos:
 Developer mode is on, set a passcode!
 OS build number: 20
 Ubuntu Image part: 20150312
 
 regards, konrad
 



-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] ubuntu phone bq 4.5 how to connecte from ubuntu 14.04?

2015-03-24 Thread Konrad Hofer
On 24/03/15 16:55, Mike Sheldon wrote:
 Hi Konrad,
 
  I don't think the version of adb in 14.04 is aware of the BQ vendor ID
 by default (this is patched in 14.10). You should be able to add that
 manually by creating a file called: ~/.android/adb_usb.ini containing
 the string: 0x2a47

That worked, after a

adb kill-server
adb start-server

Thanks a lot
cheers, konrad

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] ubuntu phone bq 4.5 how to connecte from ubuntu 14.04?

2015-03-24 Thread Konrad Hofer
On 24/03/15 16:48, Pontus Öhman wrote:
 adb devices -l

I did:

adb devices -l
List of devices attached

but the list remains empty! Dev is On (set a passcode)

adb kill-server

adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

dmesg

[29250.344219] usb 1-5.2: new high-speed USB device number 22 using
ehci-pci
[29250.437179] usb 1-5.2: New USB device found, idVendor=2a47,
idProduct=0c02
[29250.437183] usb 1-5.2: New USB device strings: Mfr=2, Product=3,
SerialNumber=4
[29250.437185] usb 1-5.2: Product: Aquaris_E4.5
[29250.437187] usb 1-5.2: Manufacturer: BQ
[29250.437189] usb 1-5.2: SerialNumber: JU002917

any ideas?

thanks a lot

cheers, konrad

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-phone] Themes on the phone

2015-03-24 Thread Alan Bell

Hi all,

right now the theme on the phone is located in 
/usr/share/ubuntu-html5-ui-toolkit/0.1/ambiance
the documentation shows how to create HTML5 apps that reference this 
directly

https://developer.ubuntu.com/en/apps/html-5/guides/html5-guide/

!-- Ubuntu UI Style imports - Ambiance theme --
link 
href=/usr/share/ubuntu-html5-ui-toolkit/0.1/ambiance/css/appTemplate.css 
rel=stylesheet type=text/css /


Apparently it is now best practice to scoop this up and pop it in the 
click package of the application rather than reference it from the file 
system, either way, your application is locked for all time to version 
0.1 of Ambiance. If the phone grows some UI for changing the theme then 
some core apps might change but your HTML5 apps won't pick up the 
changes because they are still pointing at the old theme. If you change 
to a high contrast large font accessible theme then your applications 
won't change. We can't develop new themes as click packages and get the 
whole system to respect the theme, each application will do it's own thing.


Is this the actual design intention? We are locked forever into the 
aesthetic preferences of the design team?


I was kind of hoping that remote web applications could reference the 
theme assets of the device through some kind of Sass include, so I could 
write something like an admin module for Wordpress or Joomla or Vtiger 
or Odoo or Alfresco so that when you log on to your instance of this 
software on your Ubuntu server from your Ubuntu phone everything looks 
as native as the dialler, flip the theme on your phone and all your open 
source remote web apps respect that theme change. It now seems that 
there is, and will be, no theme changing on the phone, which is a bit 
odd, I was expecting to do something like link 
href=http://localhost/ubuntutheme.css; to pick up a Sass or less 
compiled stylesheet that reflected the currently selected theme of the 
device.


Alan.

--
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] Manually deploying app to device

2015-03-24 Thread Bogdan Cuza
Thank you very much, this worked flawlessly (you just forgot to put run and 
there must be a dash, not a point in ubuntu-sdk.15.10).

Date: Mon, 23 Mar 2015 00:36:17 +0100
From: benjamin.zel...@canonical.com
To: michal.saw...@canonical.com; bogdan.c...@hotmail.com; 
nikwen.develo...@gmail.com; ubuntu-phone@lists.launchpad.net
Subject: Re: [Ubuntu-phone] Manually deploying app to device


  

  
  
Am 22.03.2015 um 22:18 schrieb Michal
  Sawicz:



  W dniu 22.03.2015 o 20:45, Bogdan Cuza pisze:

  
Well, this seems quite complicated, I think I'll stick to auto
deployment for now, but thanks anyway.

  

Not so complicated, you need:



1. armhf chroot (click chroot -a armhf -f ubuntu-sdk-15.10 create)

2. create your project (/home/user/project)

3. cd /home/user/project

4. mkdir build-armhf

5. cd build-armhf

6. click chroot -a armhf -f ubuntu-sdk.15.10 cmake ..

7. click chroot -a armhf -f ubuntu-sdk.15.10 make

8. click chroot -a armhf -f ubuntu-sdk.15.10 make
DESTDIR=/tmp/package install

9. click build /tmp/package



The finished package will be in the cwd. You will need a valid
manifest.json file of course. 

The make install step should install it into the root of the click
package (/tmp/package).



You can check out how to write a valid manifest.json file by
creating a example project

with QtCreator.




  It's actually quite much easier by reusing the bits we use for
cross-building .deb packages:

$ eval $(dpkg-architecture --print-set --host-arch armhf)

This exports a set of environment variables that a cmake module1 then
interprets and sets all the needed variables for you.

Which means you can then use cmake alone and all should be set up for you.

1 /usr/share/cmake-3.0/Modules/MultiArchCross.cmake



I might be wrong, but this won't use the official click build
chroots, which

means you can not be sure you are linking against the supported
libraries. 

I would suggest to use the chroots. 


  HTH,

  

  
  



  -- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] Themes on the phone

2015-03-24 Thread Alan Bell

Hi, and thanks for your help working through this!

On 24/03/15 18:07, Alexandre Abreu wrote:

Hi,



That sounds about right, ...

As you said, since then the css/js has since then received a bit of 
love with quite a bit a bug fixing ad polishing for the system wide 
installed theme. Our goal was to get it in proper work order so that 
most of the hurdles are not there anymore and to basically keep it 
that way (hurdles free),


Also, it is not in our priority at the moment to expand the support to 
more theme or to have a more extensive support for theme switching 
(more on that later).

totally understand that


We could revisit some of those bits if we are met with enough interest 
and we obviously welcome contributions with open arms, this project in 
particular is very contribution friendly.

yay


We might *fix* the theme layout to make things more manageable in 
terms of theme selection (sounds like a low hanging fruit) and make it 
more future proof, this seems like a reasonable thing to do anyway and 
I will take a note to try to tackle that,


Regarding the mechanism to have a system wide theme selection, this is 
something that we can tackle once we have something that is in better 
shape in terms of structure, and I can think of easy mechanisms to add 
there,


--
Alex

I do totally appreciate that the priority is one working theme, I am 
just trying to figure out something sensible to do now, so that things 
stand a fighting chance of working in the future. I am a bit concerned 
that getting local and remote apps to load 
/usr/share/ubuntu-html5-ui-toolkit/*0.1/ambiance*/css/appTemplate.css is 
doomed to fail at some point in the future.


If right now there was a /usr/share/ubuntu-unity-theme which was a 
symlink to /usr/share/ubuntu-html5-ui-toolkit/0.1/ambiance then I could 
happily load /usr/share/ubuntu-unity-theme/appTemplate.css in the 
knowledge that one day there might be something more dynamic there, 
which would likely continue to work reasonably well even it ends up not 
being a symlink, but some dynamically generated thing based on values 
picked out of the QML theme for the device. There are other ways to 
solve this, like a file that does an @include of our one and only theme, 
and there are probably issues around javascript and paths and 
containment that I don't yet understand. I don't think theme selection 
needs to be solved today, but I do think that if a little bit of 
abstraction is done now, then it avoids a squillion html5 apps failing 
to look consistent with the rest of the system or flat out breaking as 
soon as we do have a means of managing themes.


Alan.
-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-phone] codec

2015-03-24 Thread Wayne Ward
hi i took a video with the camera in ubuntu touch, the videos work on 
external device but not on the touch
im in read write and ive searched for restricted extras and added the 
ppas but not sure there available for arm on ubuntu
is there a deb or ppa i can add to get the video player support the mp4 
format it creates videos in

on nexus on 14.10(r17)

--
Regards,

Wayne Ward
07810242823
www.wayneward.co.uk
i...@wayneward.co.uk

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] Themes on the phone

2015-03-24 Thread Alexandre Abreu
Hey Alan,

On Tue, Mar 24, 2015 at 2:41 PM, Alan Bell alanb...@ubuntu.com wrote:

  Hi, and thanks for your help working through this!

 I do totally appreciate that the priority is one working theme, I am just
 trying to figure out something sensible to do now, so that things stand a
 fighting chance of working in the future. I am a bit concerned that getting
 local and remote apps to load /usr/share/ubuntu-html5-ui-toolkit/
 *0.1/ambiance*/css/appTemplate.css is doomed to fail at some point in the
 future.


As I said on #ubuntu-webapps, I agree, and I will add this to my TODO at
least to make things less strongly bounded, ... to be in a better shape
when we tackle things at the theme level,
-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] [Ongoing] Issues with CI Train Spreadsheet

2015-03-24 Thread Robert Park
On Tue, Mar 24, 2015 at 1:18 AM, Alberto Mardegan
alberto.marde...@canonical.com wrote:
 Well, I think that this has bit me in the past too. The problem is that
 if you pass 013 as the silo number, then it's taken as an octal
 number. :-)
 Maybe the citrain tool should strip leading 0s.

$ printf %03d 013
011


Well, I feel stupid now. The whole point of using printf was to pad
the zeroes for you ;-)

I'm on vacation this week. I'll push a branch for this next week
unless somebody beats me to it. For now just make sure you don't use
leading 0's when you're using the tool.

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] Themes on the phone

2015-03-24 Thread Robert Schroll

On Tue, Mar 24, 2015 at 5:04 AM, Alan Bell alanb...@ubuntu.com wrote:
Apparently it is now best practice to scoop this up and pop it in the 
click package of the application rather than reference it from the 
file system, either way, your application is locked for all time to 
version 0.1 of Ambiance. If the phone grows some UI for changing the 
theme then some core apps might change but your HTML5 apps won't pick 
up the changes because they are still pointing at the old theme. If 
you change to a high contrast large font accessible theme then your 
applications won't change. We can't develop new themes as click 
packages and get the whole system to respect the theme, each 
application will do it's own thing.


Allow me to add some context, as I understand it.  Last October, the 
HTML5 theme was in bad shape.  There were a number of bugs and it was 
not being kept up with the QML theme.  This left HTML5 developers with 
three bad options:


1) Live with the problems and hope they get fixed soon.  But there had 
been only 8 commits in the previous six months (three of which just 
updating the changelog), so this seemed a bit optimistic.


2) Monkey patch fixes onto the existing styles, and hope that things 
didn't break when the system styles got fixed.


3) Make a local copy of the styles and fix those.  If and when the 
system styles got updated, the developer could merge those in 
intentionally, avoiding breakage.


The third option seemed the least bad to me, and I said so at the 
October sprint.  Judging by how quickly the HTML5 team agreed with me, 
I suspect they had reached the same conclusion themselves.



Is this the actual design intention?


I don't think that anyone wanted this behavior.  But given that the 
HTML5 team lacked the resources to keep the theme up-to-date and in 
good working order, it seemed the least bad solution.


I notice that, since then, the HTML5 theme has received more love.  I 
haven't had the time to checkout out the improvements in any detail, 
but if it has improved enough and the HTML5 team can commit to keeping 
it up to date, it may be worth revisiting this recommendation.


This is all based on my impressions from the outside.  I hope I'm not 
misrepresenting anything too badly.


Robert


--
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] Themes on the phone

2015-03-24 Thread Alexandre Abreu
Hi,


On Tue, Mar 24, 2015 at 1:44 PM, Robert Schroll rschr...@gmail.com wrote:

 On Tue, Mar 24, 2015 at 5:04 AM, Alan Bell alanb...@ubuntu.com wrote:

 Apparently it is now best practice to scoop this up and pop it in the
 click package of the application rather than reference it from the file
 system, either way, your application is locked for all time to version 0.1
 of Ambiance. If the phone grows some UI for changing the theme then some
 core apps might change but your HTML5 apps won't pick up the changes
 because they are still pointing at the old theme. If you change to a high
 contrast large font accessible theme then your applications won't change.
 We can't develop new themes as click packages and get the whole system to
 respect the theme, each application will do it's own thing.


 Allow me to add some context, as I understand it.  Last October, the HTML5
 theme was in bad shape.  There were a number of bugs and it was not being
 kept up with the QML theme.  This left HTML5 developers with three bad
 options:

 1) Live with the problems and hope they get fixed soon.  But there had
 been only 8 commits in the previous six months (three of which just
 updating the changelog), so this seemed a bit optimistic.

 2) Monkey patch fixes onto the existing styles, and hope that things
 didn't break when the system styles got fixed.

 3) Make a local copy of the styles and fix those.  If and when the system
 styles got updated, the developer could merge those in intentionally,
 avoiding breakage.

 The third option seemed the least bad to me, and I said so at the October
 sprint.  Judging by how quickly the HTML5 team agreed with me, I suspect
 they had reached the same conclusion themselves.


That sounds about right, ...

As you said, since then the css/js has since then received a bit of love
with quite a bit a bug fixing ad polishing for the system wide installed
theme. Our goal was to get it in proper work order so that most of the
hurdles are not there anymore and to basically keep it that way (hurdles
free),

Also, it is not in our priority at the moment to expand the support to more
theme or to have a more extensive support for theme switching (more on that
later).

We could revisit some of those bits if we are met with enough interest and
we obviously welcome contributions with open arms, this project in
particular is very contribution friendly.

We might *fix* the theme layout to make things more manageable in terms of
theme selection (sounds like a low hanging fruit) and make it more future
proof, this seems like a reasonable thing to do anyway and I will take a
note to try to tackle that,

Regarding the mechanism to have a system wide theme selection, this is
something that we can tackle once we have something that is in better shape
in terms of structure, and I can think of easy mechanisms to add there,

--
Alex
-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp


Re: [Ubuntu-phone] [Ongoing] Issues with CI Train Spreadsheet

2015-03-24 Thread Alberto Mardegan
On 03/23/2015 09:37 PM, Robert Park wrote:
 On Mon, Mar 23, 2015 at 7:33 AM, Tony Espy e...@canonical.com wrote:
 I noticed over the weekend that 'citrain device-upgrade' was getting the
 silo wrong ( ie. I'd specified ubuntu silo 13, and it started to process
 silo 11 ).
 
 I have no idea how that could even be remotely possible. Unless your
 pin is 0011 and you got your pin / silo number mixed up when
 invoking the command. Check the source for the citrain tool:
 
 http://bazaar.launchpad.net/~phablet-team/phablet-tools/trunk/view/head:/citrain#L59
 
 Unless you've discovered a bug in *printf*, there's really no
 possibility for the silonumber to not be exactly what you entered.

Well, I think that this has bit me in the past too. The problem is that
if you pass 013 as the silo number, then it's taken as an octal
number. :-)
Maybe the citrain tool should strip leading 0s.

Ciao,
  Alberto

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp