maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   New audioplayer for n8x0 (https://talk.maemo.org/showthread.php?t=76917)

jwernerny 2011-09-19 16:32

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by Kroll (Post 1091819)
@jwernerny
Please can you describe [configurable backend & flickable scroll lists?

Flickable Lists

I'll start with the flickable scroll lists. Simply put, every list on shown (like list of artists, albums, song, etc.) is scrolled by touching an item and moving it up or down. (You don't use a scroll bar or arrows.) The list can be "flicked" (a quick up or down stroke), which causes it to continue to scroll with some inertia. Nokia's Qt 4.7 documents describe this better (although I don't think Canola use Qt... I'd have to check)

Quote:

In traditional user interfaces, views can be scrolled using standard controls, such as scroll bars and arrow buttons. In some situations, it is also possible to drag the view directly by pressing and holding a mouse button while moving the cursor. In touch-based user interfaces, this dragging action is often complemented with a flicking action, where scrolling continues after the user has stopped touching the view.
(See: http://doc.qt.nokia.com/4.7-snapshot...e.html#details)

Configurable Backend

Canola allows the user to configure which player engine to use (mplayer, oms/built-in) depending on file types (Audio, Video, etc.) and/or format (mp4, mp3, avi, etc). This is done through a configuration file (.atabake/config).

Actually, the atabake media engine framework looks like a good place to start as it supports several plugins for engines: oms, mplayer, gstreamer.

- John

gazza_d 2011-09-19 18:08

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by jwernerny (Post 1091813)
I think Canola had the right idea here: Allow the player to be configured. There are somethings that work better in mplayer (e.g. more video formats), and somethings that work better (e.g. using the DSP to reduce CPU overhead and power consumption).

If it wasn't for it's bloat, I would say Canola is just about perfect for my uses. Here some of the features I find I really like and would like to see in a new player
  • Flickable scroll lists
  • Podcasts
  • Separate Images, Videos, "Music" categories
  • Configurable backend

I also would love to see a player that allows EQ Settings (and uses the DSP at the same time -- yeah, right).

- John

Have you tried Mediabox? It has all that you are after except EQ.

moja 2011-09-19 18:24

Re: New audioplayer for n8x0
 
I'm currently still using Xmms on my N800. Everybody knows the things that are annoying about Xmms, but here are the main reasons that I still use Xmms over the other options available for the N800.

- It is light on resources
- Supports Icecast & SHOUTcast streams
- Delay-time between consecutive tracks is unmatched
- Uses folder.jpg cover art

FWIW, I'm also using Diablo5/Telescope, so it's easy for me to minimize Xmms while it's playing, and then switch back when needed.

I would gladly switch to a new and better player that is more N800 friendly. Looking forward to see what develops.

jwernerny 2011-09-19 18:27

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by gazza_d (Post 1091909)
Have you tried Mediabox? It has all that you are after except EQ.

I did about a year ago, and I found I didn't like it as much as Canola. I haven't checked in on it since, and I don't even remember why I didn't like it as much.

Kroll 2011-09-19 21:27

Re: New audioplayer for n8x0
 
Quote:

Buttons should change appearance when pressed.
Yes, sir! Will be done!

Quote:

In traditional user interfaces, views can be scrolled using standard controls, such as scroll bars and arrow buttons. In some situations, it is also possible to drag the view directly by pressing and holding a mouse button while moving the cursor. In touch-based user interfaces, this dragging action is often complemented with a flicking action, where scrolling continues after the user has stopped touching the view.
Oh well I call it The kinetic scrolling. Of course, this thing will be included :)

Quote:

Configurable Backend
Now I've get you. Let's see what Mitrandir gonna say about this. :)

@jwernerny
New mediabox looks good. But it is as huge and slow as Canola2 is. Try it out, maybe you will find it not so bad as I did.

Here in my opinion we need very light and fast application like Telescope. So I advice you do not expect a lot of bells and whistles...

auouymous 2011-09-19 22:45

Re: New audioplayer for n8x0
 
Does that orientation button rotate the screen or only the app? I really like the idea of rotating the app independently of the device's current orientation but it makes the app more complex. The app must still detect orientation changes so it can update its model. But now the app has four drawing modes: landscape-landscape, landscape-portrait, portrait-portrait, portrait-landscape. The other options it to have the button rotate the device's orientation so the app only needs to support two drawing modes. But does it then support all four orientations or only two? Adding three lines to Telescope allows me to press Home followed by the zoom keys to rotate the device left or right.


Quote:

Originally Posted by Kroll (Post 1091689)
So this is how much players use electricity:

Bu the way it looks like I found a right person to involve in project. His name is Mitrandir and he is a Telescope creator :)

The wrapper could kill mplayer when pausing, and then seek to the last position when restarting it. That would lower its power usage to zero when paused.

Yay, not me! :) @ mitrandir: use C++ and Xlib like you did with Telescope. :)

Regarding flickable scrolling, if you support this could you add a setting to adjust its speed. I would prefer to have it very low to make it easier to browse and not end up several pages away with a slight scroll. ASUI's process viewer has some fast list scrolling code if you need it, an additional timer and speed setting could be added to give it inertia support.

Make sure it has a good dbus interface so it can be controlled by another program, such as ASUI's audio lock mode. And when I make my file manager I can launch audio files and playlist files into your player. I could even dynamically generate a playlist file for a given directory or all selected directories (in the file manager) and have your player play it. Then you could focus on the hard task of making a good audio player and I can focus on the easy stuff. ;) Would also be nice if you could make it play videos so I could launch them in it as well. :D


Quote:

Originally Posted by Addison (Post 1091786)
Perhaps have a possible feature where the backlight remains lit while playing music for those who have this on their nightstand, or at work, etc.

He only needs to send a blanking pause to DSME when the button is pressed and send an unblank when pressed again. Not sure why you'd want to drain your battery faster just to see your playlist or current song. You could keep the screen lit and not drain battery if you just plug it in.

Mitrandir 2011-09-20 07:13

Re: New audioplayer for n8x0
 
Hi all,

I'm probably going to start developing this project :)

I need several days to bring my current Harmattan project to solid shape and ready for Ovi Store. So we have time to discuss technical details and overall design now.

Quote:

Originally Posted by auouynous
Yay, not me! @ mitrandir: use C++ and Xlib like you did with Telescope.

:)
I thought about than and I think that pure Xlib wont be the case. It seems that audioplayer will heavily rely on D-Bus and it needs more advanced graphics and user interaction than Telescope. All of these could be much easier to implement with Glib & GTK.
Actually, i don't expect that GTK can add much memory requirements because all its libs are already in RAM on Maemo. But it will make it much easier to integrate D-Bus, for example.
But using GTK woth plain C is a pain and tears :) So, i'm thinking of using Vala. Vala is a kind of preprocessor that takes sources in Vala language which is C#-styled with automatic memory management, closures, and very tight GTK integration and builds plain C code that then compiled with regular gcc and works nearly as fast as hand-written C program. I think this is the best approach that combines modern language's features & conding speed and low-level performance of C.

What about audio engine. I think we can start with GStreamer because it very common and is native for Maemo. And on Diablo there is GStreamer plugin for playing mp3 via DSP, which i expect to be best choice for 90% of users. But i think that player's code need to be designed with support of different engines in mind.

By the way, does anybody has ready solution for how to react on headset button press? I think it could be figured out from 'headphoned' (right?) sources, but may be someone remembers exact D-Bus signal name?

tso 2011-09-20 07:19

Re: New audioplayer for n8x0
 
Ah, Vala. I think Tear is coded in Vala.

auouymous 2011-09-20 08:04

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by Mitrandir (Post 1092339)
Actually, i don't expect that GTK can add much memory requirements because all its libs are already in RAM on Maemo.

asui-settings displays 10-15 buttons on start and uses 5.5meg. ASUI loads in a lot of data, opens numerous descriptors, launches a dbus thread and so much more and uses less than 3meg. Telescope has is the same way with all of its icons and window thumbnails and uses less than 5meg. And raw dbus handling is easy. ;)

Oh well, try to keep it around 7meg like xmms.

Quote:

Originally Posted by Mitrandir (Post 1092339)
By the way, does anybody has ready solution for how to react on headset button press? I think it could be figured out from 'headphoned' (right?) sources, but may be someone remembers exact D-Bus signal name?

dbus-monitor doesn't show any signals when I press buttons on my headset. Volume changes but no signals and the main button doesn't do anything in media player.

These are the bluetooth docs I collected for ASUI.
http://bluez.cvs.sourceforge.net/vie...d/dbus-api.txt
http://bluez.cvs.sourceforge.net/vie.../audio-api.txt
http://maemo.org/maemo_release_docum....x/node10.html
http://wiki.maemo.org/Documentation/...Bus_UI_dialogs

https://garage.maemo.org/plugins/scm...ui&view=markup -- You can find dbus headset detection around line 1241.

Kroll 2011-09-20 08:10

Re: New audioplayer for n8x0
 
Quote:

I think Tear is coded in Vala.
that's right.

Quote:

Yay, not me!
Sorry, bro :) I am sure you have enought things to do without this project) But you are very welcome, all you guys)
And I think that your File Manager will work sweetly with audio player :)

jstokes 2011-09-20 08:14

Re: New audioplayer for n8x0
 
Hi there,

Quote:

Originally Posted by Mitrandir (Post 1092339)
I'm probably going to start developing this project :)

Well, thank you :)

Quote:

I need several days to bring my current Harmattan project to solid shape and ready for Ovi Store. So we have time to discuss technical details and overall design now.
Good luck!

Quote:

So, i'm thinking of using Vala. Vala is a kind of preprocessor that takes sources in Vala language which is C#-styled with automatic memory management, closures, and very tight GTK integration and builds plain C code that then compiled with regular gcc and works nearly as fast as hand-written C program. I think this is the best approach that combines modern language's features & conding speed and low-level performance of C.
I know GObject isn't nice, but the version of Vala available for Diablo is old (admittedly the GLib version isn't any better) and bug fixes have been noted in the changelog since...

Quote:

What about audio engine. I think we can start with GStreamer[...]
Yessir!

Quote:

By the way, does anybody has ready solution for how to react on headset button press? I think it could be figured out from 'headphoned' (right?) sources, but may be someone remembers exact D-Bus signal name?
Code:

/* valac --pkg dbus-glib-1 --disable-dbus-transformation dbus-hal.vala */

void on_Condition (string name, string details)
{
                if (name == "ButtonPressed") && (details == "phone")
                {
                        stdout.printf ("Headset button pressed\n");
                }
}

void main () {
        DBus.Connection conn = DBus.Bus.get (DBus.BusType.SYSTEM);
        dynamic DBus.Object hal = conn.get_object ("org.freedesktop.Hal", "/org/freedesktop/Hal/devices/platform_retu_headset_logicaldev_input", "org.freedesktop.Hal.Device");

        hal.Condition.connect += on_Condition; /* Deprecated syntax, but it's not like Vala is getting any newer on Diablo */

        new MainLoop().run();
}

I haven't compiled the code, but I do know that the interface names etc. are correct.
There is a libhal binding, but DBus (through DBus-GLib) seems to be better integrated - I don't think all of libhal's functions are bound

http://code.google.com/p/fingertier/ is a player written for the OpenMoko by a person who seems to have had some of the same ideas as you :)

Quote:

Originally Posted by auouymous (Post 1092353)
dbus-monitor doesn't show any signals when I press buttons on my headset. Volume changes but no signals and the main button doesn't do anything in media player.

If you have an headset with a single button on it (to end calls) such as the one that came with the N800 (its model name eludes me, sorry) or this Sony Ericsson HPM-75(i)j I'm using now, pressing the button gets this event emitted on the system bus:
Quote:

signal sender=:1.1 -> dest=(null destination) serial=218 path=/org/freedesktop/Hal/devices/platform_retu_headset_logicaldev_input; interface=org.freedesktop.Hal.Device; member=Condition
string "ButtonPressed"
string "phone"

yukop4 2011-09-20 08:22

Re: New audioplayer for n8x0
 
what would really be good is if the music player can stream internet radio and have streamripper incorporated so you can record music and play it-streamtuner would be a good example

Mitrandir 2011-09-20 09:08

Re: New audioplayer for n8x0
 
Yes, Tear is coded in Vala. The only thing i hate about Vala is a lack of incremental compiling support. All source code must be recompiled after single line change.

auouymous, are you sure you measure memory consumption correctly? VSZ of GTK-based application will be greater, but VSZ includes memory that is shared among all GTK-apps. I think RSS is the right thing to compare. Or you already measure RSS?
I need to do some tests, I think. If memory consumption difference will be considerably big, using of GTK should be reconsidered.

By the way, Telescope is linked with Glib already, since merging with Launcher which uses Glib for parsing XML :) But no GTK and no Glib's D-Bus bindings.

jstokes, thanks for the snippet!
Yeah, Diablo has very old Vala version, but I already have some skills in working around its bugs :D

auouymous 2011-09-20 09:28

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by Mitrandir (Post 1092396)
The only thing i hate about Vala is a lack of incremental compiling support. All source code must be recompiled after single line change.

Ouch!


Quote:

Originally Posted by Mitrandir (Post 1092396)
auouymous, are you sure you measure memory consumption correctly? VSZ of GTK-based application will be greater, but VSZ includes memory that is shared among all GTK-apps. I think RSS is the right thing to compare. Or you already measure RSS?

Yup, the memory values in ASUI's process viewer are all RSS.

I have an idea, why don't you write a new Xlib UI toolkit for Maemo. Lightweight, flexible, pretty graphics, good theme support and so on. Then I can use it in the file manager and ASUI. :D

Mitrandir 2011-09-20 09:59

Re: New audioplayer for n8x0
 
Quote:

I have an idea, why don't you write a new Xlib UI toolkit for Maemo. Lightweight, flexible, pretty graphics, good theme support and so on.
Hehe, i guess this is the very same phrase which was said before creation of Tk, FLTK, Fox, Motif and a dozen of other UI tooklits ;)
But UI library is a huge amount of work and, after all, I'm not sure that it will use less memory if it will be as flexible and powerful as GTK ;)

By the way, I have measured RAM consumption of the very simple gstreamer app and it seems to eat around 8mb when playing from local file and ~10mb when playing from http url. Adding empty GTK window adds another 3mb. But that's on desktop PC, i will test it on N810 later but i expect the same result.

And by the way, if we want GStreamer backend we must use Glib because GStreamer is based on GObject

Upd: rewrote experimental GTK+GStreamer program in vala: exactly same result in memory size than in C (even 150kb less :) )

And look how beautiful vala code is :) This is a full code of working program that plays mp3 from http
Code:

static void main(string[] args)
{
    Gtk.init(ref args);
    Gst.init(ref args);

    var pipeline = Gst.ElementFactory.make("playbin2", "player");
    pipeline.set("uri", "http://www.peternalitch.ru/mp3/lostandforgotten/1_lost_and_forgotten.mp3");
    pipeline.set_state(Gst.State.PLAYING);

    var window = new Gtk.Window();
    window.show_all();
    window.destroy.connect(Gtk.main_quit);

    Gtk.main();
}


auouymous 2011-09-20 19:47

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by Mitrandir (Post 1092424)
I'm not sure that it will use less memory if it will be as flexible and powerful as GTK

Who said it needs to flexible or powerful, just fast and lightweight. :D


Quote:

Originally Posted by Mitrandir (Post 1092424)
By the way, I have measured RAM consumption of the very simple gstreamer app and it seems to eat around 8mb when playing from local file and ~10mb when playing from http url. Adding empty GTK window adds another 3mb. But that's on desktop PC, i will test it on N810 later but i expect the same result.

11-13meg for a blank window that plays a song? This will consume 20meg like media player. I wish Nokia had made their own lightweight
UI toolkit that was similar enough to GTK that most basic GTK apps could compile against it without changes.

Kroll 2011-09-20 22:03

Re: New audioplayer for n8x0
 
I did a few minor changes in drafts I showed before and some kind of settings page.
Keys, font size and about are links to the submenu which may be looks the same.
I think play and switch buttons may still work as they used to even in the Settings menu. Who nows, maybe you will need to stop playing immediately…
http://i066.radikal.ru/1109/9a/fe3586d73d98.png
http://s006.radikal.ru/i215/1109/52/5c7afcf89adf.png

I would like to hear what to do with seek circle on the seek bar. I have no idea what to draw...

auouymous 2011-09-20 22:45

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by Kroll (Post 1092853)
I think play and switch buttons may still work as they used to even in the Settings menu. Who nows, maybe you will need to stop playing immediately…

I would like to hear what to do with seek circle on the seek bar. I have no idea what to draw...

Can GTK do all of this?

The new seek circle looks good, so did the last one. The checkboxes in settings need to stand out more, too hard to see. And you should gray out any control buttons that aren't active with settings open, like the playlist button. Unless you want to use it, in addition to the settings button, to close settings.

That red close button has bugged me since the first mockup though. It stands out too much because it isn't blue/black/white like the rest of the window. Maybe darkening the red would help, or changing it to a blue X like diablo5.

Addison 2011-09-21 01:00

Re: New audioplayer for n8x0
 
Somebody mentioned recording live internet radio.

I love this idea.

I listen to Acoustic Radio Cafe and it plays songs you can't find or purchase anywhere online.

So yeah, having Streamripper (already available) support would be amazing. :)

Mitrandir 2011-09-21 08:23

Re: New audioplayer for n8x0
 
Quote:

11-13meg for a blank window that plays a song? This will consume 20meg like media player
Yep, but this isn't due to GTK. This is due to Glib & GStreamer. Adding GTK to primitive gstreamer-based app adds only 3mb.

Okay, i'm not insisting on using GTK. After all, such non-generic UI will not use the core part of GTK — standard widgets. Simple pixmaps-based widgets and handling touch events can be implemented as thin abstraction layer over Xlib.
So, okay, i'm going to agree with you about GTK :) Small & simple X-based UI toolkit seems to be enough. And this toolkit can be reusable in other projects :)

(By the way, I already have some little experience in writing lightweight UI toolkits: I did one over WinAPI when developed project for Windows CE. Qt & Gtk was too heavy for device with 32mb RAM and I have created my own, because coding with plain WinAPI is even more ugly than with plain Xlib :) )

And if we are dropping GTK, Vala might be the next, because the main advantage of Vala is the ease of using GTK. And ok, D-Bus can be handled manually too :)

But using GStreamer will eat 8-10mb of ram anyway. And i don't know how we can do anything about it.

About the UI. I *love* these mockups! The last one with settings menu is really amazing (except checkboxes as auouymous said).
But unfortunately blurred background is not the case for N8x0. We have no OpenGL shaders which can do this easily. And blurring with CPU is really expensive. I think the most we can do is to dim background with plain color.
And yes, close button is not from here. It seems to be from Windows Vista :)


Quote:

Somebody mentioned recording live internet radio
This seems to be pretty easy to do with gstreamer


Kroll, i think it's time to start working out some formal technical requirements. Could you create some public Google Doc for it, please?

auouymous 2011-09-21 09:01

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by Mitrandir (Post 1093082)
D-Bus can be handled manually too. But using GStreamer will eat 8-10mb of ram anyway. And i don't know how we can do anything about it.

Might as well use glib-dbus since you have to have glib for gstreamer. I don't think glib increases the program anywhere near as much as GTK does. And maybe you have gstreamer in some default bloated down mode and its possible to get its size down, a lot. :)

maacruz 2011-09-21 17:15

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by Addison (Post 1092947)
Somebody mentioned recording live internet radio.

I love this idea.

I listen to Acoustic Radio Cafe and it plays songs you can't find or purchase anywhere online.

So yeah, having Streamripper (already available) support would be amazing. :)

I tried to use streamripper a while ago to record from somafm, and it will eat the cpu and the battery alive.

maacruz 2011-09-21 17:24

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by auouymous (Post 1093103)
Might as well use glib-dbus since you have to have glib for gstreamer. I don't think glib increases the program anywhere near as much as GTK does. And maybe you have gstreamer in some default bloated down mode and its possible to get its size down, a lot. :)

gstreamer isn't a good audio player for the N8x0.
From my work in the old mediabox I've seen that the propietary mediaplayer-engine (media player backend) is quite easy to use and low on memory usage, it uses the DSP, and it makes sense to use it first since you already have it in memory (4,8 MB RSS)

Kroll 2011-09-22 09:18

Re: New audioplayer for n8x0
 
Quote:

Kroll, i think it's time to start working out some formal technical requirements. Could you create some public Google Doc for it, please?
ok. I think today I will find time to do it.
By the way, why don't we create a garage page? There is a place for reqests, isn't it?

auouymous 2011-09-22 09:45

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by Kroll (Post 1093774)
why don't we create a garage page? There is a place for reqests, isn't it?

Yes, the request tracker. I think mitrandir wants an organized document (that can be re-arranged) of what needs to be done and ways to do it. The tracker would be a mess.

Kroll 2011-09-22 10:37

Re: New audioplayer for n8x0
 
https://docs.google.com/document/d/1.../edit?hl=en_US
Rearrange, add, DO WHAT U WANT CUZ A PIRATE IS FREE, YOU ARE A PIRATE!

Mitrandir 2011-09-22 15:46

Re: New audioplayer for n8x0
 
maacruz, thanks! Could you please point me to some docs on the mediaplayer-engine or something to start with?

Kropl, to organize some place for sources and tracker at garage or github we need some name for the project. Since thats your idea and inspiration the name is up to you ;)

The googledoc you have created is a good start. Lets fill it with more concrete technical, UX and other details.

auouymous, i've started to code a simple lightweight ui library and may be will publish something soon. Hope you will find it useful :)

Kroll 2011-09-22 16:27

Re: New audioplayer for n8x0
 
Quote:

Since thats your idea and inspiration the name is up to you
Well I suggest a Simple Music Player - Simp.
Quote:

Lets fill it with more concrete technical, UX and other details.
I will organize it as soon as I will have some free time. But you all welcome to participate!

maacruz 2011-09-22 17:42

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by Mitrandir (Post 1093990)
maacruz, thanks! Could you please point me to some docs on the mediaplayer-engine or something to start with?

There seems to be no documentation anywhere to be found.
Just the code from mediabox or atabake. Both are python and use python dbus.Interface magic to generate a controlling class.
https://garage.maemo.org/plugins/scm...ox&view=markup

If you have any problem understanding this code, tell me and I'll write the documentation for you.

auouymous 2011-09-22 20:09

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by Mitrandir (Post 1093990)
auouymous, i've started to code a simple lightweight ui library and may be will publish something soon. Hope you will find it useful :)

Maybe I'll extra ASUI's process viewer code and make a list widget for it.

Also working on some code that allows sliding between views. It copies the current window to a pixmap, draws next view in another pixmap and then slowly animates between the two or allows user to drag between the two views. When you open a folder in the file manager it will slide the new folder in from the right. When you swipe right or click to go back it slides the parent folder in from the left. And switching between bookmarks and file view might slide vertically. ASUI will also use this when changing between primary and secondary widget pages and when opening/closing dialogs.

Maybe we should also start a UI library project/thread to create a lightweight and touch-friendly UI widget library. Figure out what should be in it to make a new style of apps for Maemo4. Such as system-wide theming support and Kroll could tell us what is needed for good theming. Wouldn't it be nice if ASUI, SiMP, the file manager, Telescope's category bar and others all shared the same theme? :)

Thoughts?

Kroll 2011-09-22 22:16

Re: New audioplayer for n8x0
 
auouymous what a wonderful words have you wrote here... amazing!

But don't think that I know about good theming :) I am too lazy to learn how to make a really good stuff.

auouymous 2011-09-22 23:08

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by Kroll (Post 1094176)
auouymous what a wonderful words have you wrote here... amazing!

But don't think that I know about good theming :) I am too lazy to learn how to make a really good stuff.

You made the theme that every n8x0 owner is using. :)

ASUI's theme support lets you change the color of various elements. What does GTK let you do to change the style of widgets? I know GTK also supports plugins that handle that actual drawing of widgets for more complex stuff but how do simple themes work, like Diablo5?

Kroll 2011-09-23 04:12

Re: New audioplayer for n8x0
 
Quote:

You made the theme that every n8x0 owner is using.
Well yeah, but I was pissed off cuz of this *******s who was yelling "Oh n900 has so cool background!!! n8x0 sucks!"

tso 2011-09-23 13:04

Re: New audioplayer for n8x0
 
Huh? i still use one of the maemo4 themes. Can't be bothered to spend the storage space, and i kinda liked the sidebar anyways.

lma 2011-09-23 17:54

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by tso (Post 1094503)
Huh? i still use one of the maemo4 themes.

Ditto, but see below.

Quote:

Can't be bothered to spend the storage space, and i kinda liked the sidebar anyways.
I do like the extra horizontal real estate, but I really can't stand the Fremantle look. I ended up doing just the following (both "borrowed" from Diablo5):
  • set Tasknavigator's X-Size-Height to 0 in home/user/.osso/hildon-desktop/desktop.conf
  • copied /usr/share/applications/hildon-navigator/switcher-menu.desktop to /usr/share/applications/hildon-status-bar/ in order to still get IM etc notifications

(and of course use telescope for app launching).

it's not perfect (eg visual glitches with window title bars and the task navigator looks a bit odd in the status bar) but good enough for me :-)

Kroll 2011-09-23 18:57

Re: New audioplayer for n8x0
 
Quote:

to still get IM etc notifications
Actually you can get it in Diablo5 too.
I've never spoke about it cuz nobody asked me 'bout it looong time.
So there is a BT-keyboard menu in Control Panel and there is a keybuilding to open default task switcher. Set your favorite keys to open it and you will see notifications as well.
Actually you can bind some other actions there as well: show desktop, open built-in launcher, etc.

gazza_d 2011-09-23 18:58

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by auouymous (Post 1094197)
You made the theme that every n8x0 owner is using. :)

Although I like the Diablo5 theme, I found that I had problems with some of the dialog boxes, and the overall size of the fonts.

I have switched back to Glasser, and it makes a refreshing change theme from Fremantle.

Yea, and it's easier on my eyes as well.

lma 2011-09-23 19:17

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by Kroll (Post 1094706)
Actually you can get it in Diablo5 too.

I know, I stole it from the first post in that thread ;-)

tso 2011-09-23 19:56

Re: New audioplayer for n8x0
 
Quote:

Originally Posted by gazza_d (Post 1094708)
Although I like the Diablo5 theme, I found that I had problems with some of the dialog boxes, and the overall size of the fonts.

I have switched back to Glasser, and it makes a refreshing change theme from Fremantle.

Yea, and it's easier on my eyes as well.

Yep, glasser is my poison of choice. Only issue i have there is that screen rotation sometimes makes the in theme line between applets and "taskbar" move to the bottom corner. A couple more rotations will right it tho.

auouymous 2011-09-23 20:50

Re: New audioplayer for n8x0
 
https://docs.google.com/document/d/1.../edit?hl=en_US

@ mitrandir and anyone else who cares
I wrote down some ideas for the toolkit, what do you think? Anyone can edit that doc. GTK has a lot of features that probably shouldn't be in a tablet UI or should be handled differently and maybe some new features that GTK doesn't have.

@ mitrandir
Once upon a time I also wrote a UI toolkit with automatic layout so let me know what you need help with. The configuration windows for the dock on my desktop is still using it, 8 years later. :)

I should have some time this next week to write some code for it.


All times are GMT. The time now is 16:13.

vBulletin® Version 3.8.8