1
0
mirror of https://github.com/gryf/wmdocklib.git synced 2025-12-19 12:28:10 +01:00
Commit Graph

24 Commits

Author SHA1 Message Date
mfrasca
e70f75cda7 quick patch, to make this program fit in a swallowed gnome applet of
arbitrary height.  actually at the moment only works for 50 <= height <= 64
2008-03-25 17:49:51 +00:00
mfrasca
8d0689cc97 small mistake. sorry. calculateWeek is a member of the application class. 2007-07-22 08:55:29 +00:00
mfrasca
06e5448771 forgot to check if the removed functions were in use! 2007-07-11 18:07:22 +00:00
mfrasca
48b67704bb 1724798: labels are not aligned
implemented the 'align' parameter to the Application.addLabel method.

the pywmhelpers.addString function now returns the x-size of the string.

moved all labels in pywmdatetime one pixel to the left.
2007-05-24 19:04:48 +00:00
mfrasca
e5a8d777b6 1723946: weekday is not updated correctly
I've almost completely rewritten the program, cleaned up most stuff which
has become useless in the object oriented framework.

the strings are not any more centered, this has not yet been programmed in the library.
2007-05-24 12:17:10 +00:00
mfrasca
3c127f9849 1584740: colours messed up
modified the fonts: they start from background colour (None or Black) and go
to full intensity, which ought to be gray100 or white.

the initialization procedure will spread all colour differences between the
requested background and foreground proportionally to the intensity of the
gray char pixel.

most colour code clashes are resolved at initialization stage.  there are
only a few things you should not reuse, such as the space for transparency.
just try out the result and make use of the 'debug' parameter which will
cause the function to print the the generated xpm.
2006-10-26 08:41:00 +00:00
mfrasca
b8b56debee shifting the text one pixel to the right. needed when the leading digit is not a 1. 2006-10-25 06:52:07 +00:00
mfrasca
1c0177acb5 1580293: initialization of pixmask - drawing areas
modified the width of the two areas.
2006-10-22 18:57:33 +00:00
mfrasca
c89b35ff1e 1580293: initialization of pixmask - drawing areas
marginal corrections...
2006-10-20 20:39:01 +00:00
mfrasca
504b2419f8 1580293: initialization of pixmask - drawing areas
this again is a radical modification...  more or less as requested in pr.
2006-10-20 20:01:54 +00:00
mfrasca
8dcf5f4742 1579871: offer antialiasing as option
as required
2006-10-18 17:45:01 +00:00
mfrasca
ad25a18c51 added "condensed" 5x8 font to the suite,
cleaned up the code of pywmdatetime.
2006-10-18 14:46:21 +00:00
mfrasca
92f172da49 1579522: antialiased fonts for digits
just a nice border around the top time string
2006-10-18 12:46:06 +00:00
mfrasca
0065f12b75 1579522: antialiased fonts for digits
I took one of the font definitions from a running wmCalClock and put it in
the 'background' pixelmask.  this works quite good.  the name of the
parameter is rather confusing, it's not a background actually but a
collection of templates...  but that's an other problem.
2006-10-18 09:31:52 +00:00
mfrasca
092c3a4def corrected a bug which prevents operation if no %q is found in configuration. 2006-10-16 08:21:50 +00:00
mfrasca
f469f22b59 1577063: fonts are hard coded
added -F, --font option to some examples.
2006-10-15 12:49:19 +00:00
mfrasca
87b09d0229 1577060: colour choice at command line is lost
palette is now built using the options passed at command line.
2006-10-14 08:17:14 +00:00
mfrasca
db4f53d257 1575762: initialization of pixmask
removed the definition of defaultRGBFiles from the examples: it is now
hosted in the library.

removed function parseColors from examples.  this is done during initPixmap.

added wmdocklib.defaultRGBFileList

removed wmdocklib.setColor (superseded by wmdocklib.initPixmap)

extended wmdocklib.initPixmap:
 basic 16 colour palette [basic_colours] from rgb.txt (not hard coded)
 alter_palette to (re)define an indexed colour in the xpm.
 bg/fg can be a single character or a number [0..15]
 ' ' as transparent colour.
 some debugging 'if 0:' code.

extended wmdocklib.getColorCode:
 it reads either the given rgb file or the first accessible file from
 defaultRGBFileList

corrected url in setup.py: it used to point to ibo!
2006-10-13 11:58:17 +00:00
mfrasca
651b44127d 1575762: of pixmask
hard coded 3 pixels margin.  it should actually be configurable, but better this than nothing.
2006-10-12 19:14:50 +00:00
mfrasca
ed4b557ab0 1575762: initialization of pixmask
this is an important modification.  I hope it won't break too many programs
based on this library, or at least not in such a way that will make you
upset with me and my work...

well: the library offers now three charsets and a 16 colours palette.
but: you must use them.

there is no support yet for named colours.

the only working examples are pywmdatetime and pywmhdmon.
2006-10-12 17:29:17 +00:00
mfrasca
1d33c72f47 1293224: char font
just preparing for a bigger change...
extended the global font (just one), it has lower and upper case.
2006-10-06 14:33:39 +00:00
mfrasca
0bf5b49746 1293224: char font
just preparing for a bigger change...
introduced a global font (just one), it is lower case per default.

I intend to modify the function for registering the default xpm to something
accepting the 64x64 bitmap (application dependent) and insert it into the
global pixmap.  an other function could be used to register the alfabet
pixmap and correspondently setting the variables indicating the position of
each character.  we would only support monospace alfabets.

the 'printing' functions would also be simpler (less arguments), since it
would be the library knowing which is the alfabet in use.
2006-10-06 12:37:39 +00:00
mfrasca
d1c1618277 1569327 release 1.1 is broken
finalizing cleaning up things.

all example scripts include and use wmdocklib (was pywmhelpers from pywmdockapps)
2006-10-03 08:10:30 +00:00
mfrasca
9c81d722a7 1569327 release 1.1 is broken
trying to clean up things.

wmdocklib now contains the modules to install.
examples all the scripts.
only pywmhdmon.py has been tested.
2006-10-03 07:45:21 +00:00