Sie sind nicht angemeldet.

1

Montag, 25. Oktober 2004, 17:26

Glyphs fuer Beta 3

Wie schon bekannt ist, wird das Verfahren zur Integration von Glyphs umgestellt, bzw. ist schon, ab TheBat! 3.x, anwendbar.

Laut Aussage des verantwortlichen Layout Entwicklers ist geplant, die Unterstuetzung fuer 'bmp' Glyphs in TheBat! 3.x evtl. zu beenden. Ein moeglicher Zeitpunkt steht jedoch noch nicht fest. Ein Workaround, bzw. eine Uebergangsloesung fuer bestehende 'bmp' Glyphs ist mittels einer 'batskin.ini' diese zu erweitern, damit z.B. die fehlende Zeile (NFS Icons), bzw. die entsprechenden Icons in TheBat! dargestellt werden.

Dieses Verfahren ist ein erster Schritt dahingehend, TheBat! mit eigenen oder zusatzlichen Icons auszustatten, bzw. die Anpassungsfaehigkeit von TheBat! in viele Richtungen (Skin - anpassungsfaehige Iconleiste, etc.) zu erhoehen.

Bitte posted hier Bugs, Verbesserungsmoeglichkeiten und Vorschlaege. Das Boardteam wird diese an den zustaendigen Entwickler bei RitLabs weiterleiten.

Dokumentation
Beispiel Glyph und Ini
Ciao
Tommy


http://www.thebatworld.de

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tommy« (25. Oktober 2004, 17:29)


2

Montag, 25. Oktober 2004, 20:53

Glyphs fuer Beta 3

Ich schreib sie auch mal hierher damit mans schön beisammen hat.

Zitat

Regarding "batskin.ini" - there is a possibility, that current file format
will be significantly changed, due to continued work in progress on the whole
GUI system of program. At least a possibility to select different icon sets from
available files using Options/Preferences is planned.

For now the file is following these rules:

-----------------------------------------------------------
The format is a "generic" Windows .ini file with some required sections
(the description of a generic windows .ini file could be acquired separately).
Program scans the file for these sections and parses their data accordingly.

Required sections and their contents are:

[bitmaps]
Bitmap<n>=<filename1>[,[<filename2>][,[[CropX][,[CropY][,[CropWidth][,[CropHeight]]]]]]]

the file (batskin.ini further will be called "the file") must contain at least one
such section, otherwise it could be of no sence to use it.
bitmap in the context of the file is a picture which may contain from one to many
"glyphs" (separate icons or "pictures in the picture") of the same or different
sizes, their locations could be any desired by the file creator.
<n> code of bitmap is a number in range 0..X (X should be reasonable)
number must be unique for this section.
filename1 - hicolor interface mode file with glyph graphics. supported formats are
JPEG, PNG, BMP. PNG or BMP with full range alpha range (8-bit alpha) are
preffered and fully used for image alpha-blending. JPEGs, 8bit (and lower) BMPS,
256 color PNGs are supported in a transparency limited mode. pixel at (0,0)
defines "KeyColor" - a color which is not drawn and is used as a picture mask
(usually it is a magenta, for example, but could be any - if you make it as a
used color in your glyphs, you'll have "holes"!).
filename2 - 16-color mode version of glyphs (HiColor Images checkbox is off in Options/Preferences)
must be of the same size with picture in the filename1.
only BMP is supported, 16-color (4bit) files are prefered. of course, no
alpha-blending, only simple key colouring, similar to 1.x,2.x behaviour.
could be omitted, in that case built-in version is used, but you still define
custom glyphs, the result could be messed up.
CropX, CropY, CropWidth, CropHeight - if picture has unused space around graphics,
these parameters may specify a cropping rectangle similar to Photoshop "Crop
Image". helps to save memory used by loaded bitmaps.
omitting CropX or CropY defaults them to 0.
omitting CropWidth or CropHeight defaults to remaining bitmap Width or Height,
accordingly.

Example:
[bitmaps]
Bitmap0=new_icons.png,,28,33,608,384

load a bitmap from file "new_icons.png", ignore 16-bit version, crop image at 28,33
with size 608x384 (implies, picture is bigger and at least have unused space at 28
pixel wide at left and 33 pixels tall at top, this space is removed and final loaded
picture will be 608x384 pixels)


[schemes]
<SchemeName>=<GlyphSetID>
defines, which glyph set (discussed later in this document) is associated with this
program-required scheme name.
SchemeName a name which is used by main program code to find a glyph set.
the file must contain resolving of next glyph scheme names:
(WorkIcons,Buttons,ListIcons,Folders,Controls,AddrBook,BigIcons)
GlyphSet a local identifier, which defines a glyph set.

Example:
[schemes]
WorkIcons=my_workicons
...

defines "WorkIcons" as "my_workicons".
(however, all other required scheme names must be defined, too)


[glyphsets]
GlyphSet<n> = <GlyphSetID>,<Width>,<Height>
defines which glyphsets will be loaded into memory and which sizes do have glyphs
inside. the file may have more glyph sets defined, than used.
n order number, not important.
Width, Height size of each glyph (pixels) in the given glyph set. (all glyphs in a glyph
set have the same sizes!)

Example:
[glyphsets]
GlyphSet0=my_workicons,16,16

define glyph set with identifier "my_workicons" having glyph sizes of 16x16 pixels.


[<GlyphSetID>]
defines contents of a glyph set identified by <GlyphSetID>.

section opening (the [<id>] thing) may be followed by:
fixup=[<GridWidth>],[<GridHeight>],[<OffsetX>],[<OffsetY>]
defines, how will be glyphs extracted from source bitmap picture for this glyph set.
GridWidth, GridHeight
changes virtual grid to specified size.
source bitmap space (without the cropping part!) is virtually divided into
cells of size GridWidth x GridHeight (pixels).
default grid size is equal to glyph set defined sizes.
OffsetX, OffsetY
when specified, moves the glyph position relatively to grid, respectively.
if omitted defaults to 0 or previously specified fixup in this glyph set
section.

<GlyphID> = <BitmapID>,<Column>,<Row>[,[<OffsetX>][,[<OffsetY>]]]
defines one glyph for this glyph set. the program scans each glyph set for a
specific program-defined name, case insensitively. custom names may be defined,
but will be not used. and vice versa - if programs tries to find a name which does
not exists, no drawing would be performed for this name.
BitmapID the code of loaded bitmap ([bitmaps] section) which contains this glyph.
Column, Row grid cell position, starting with 0 (first row / first column is 0,0)
OffsetX, OffsetY offset position of this only glyph by specified pixels.
defaults to 0 or fixup-specified numbers.
(good aligned glyphs do not require these)

Example:
[my_workicons]
Options=0,3,4
Cookies=0,12,4
...
fixup=32,32,16,16
Memo=1,14,4
Chat=1,18,8
...
Templates=1,5,4,15,10
AddrBook=1,0,4,,11

add glyphs to "my_workicons" glyph set.
assuming, "my_workicons" is a 16x16 glyph set:
"Options" is taken from bitmap with code 0, fourth column, fifth row, no additional
offset. "Cookies" is taken from the same bitmap, respective col,row to 12,4.
fixup follows, which makes virtual grid 32x32, and icons are taken from 16,16 in
each cell. "Memo" is placed in a bitmap with code 1 at column/row - 14,4.
"Templates" is taken from bitmap 1, row/column 5/4, but moved to 15,10 inside grid
cell. "AddrBook" is only moved to 11 in the cell.


the file may contain any amount of comments - any text after semicolon (";") is
ignored until the end of line.


the "batskin.ini" story still evolves, since GUI customization is a work in progress
and these two things are closely related. that's why I feel reluctantly to post
"batskin.ini" documentation officially, to avoid "versioning hell".
it is possible, that .ini will be mutated into a more TheBat! general format soon.
and glyph ids (names) could became not program-dependent, but GUI definition file
dependent.
however, the principle it is built upon, will not be changed and very easy porting will be
possible, with few lines changed in the file.
so, "batskin.ini" creation is welcomed, anyway!


Related Notes:
when program loads bitmaps, it makes necessary image crops, if specified, to save
memory usage, which could be huge. small png files having large unused space could
be small due to good compression, but after they load they may consume many
megabytes of RAM.
glyphs are drawn directly from source bitmaps, no duplications are made, the file
mostly defines where to draw from each specified glyph.


Regarding "Missing NFS Icons" problem:
For those, who may want to add those few missing icons, a file batskin.ini could be
supplied along with a missing icons only additional file (3 files altogether)

[bitmaps]
Bitmap0=glyphs.bmp
Bitmap1=GlyphBMP-patch.png

filter-related part of glyphs should look like:

; filters in a separate file
fixup=24,24,0,0
bLeft=1,0,0
bDown=1,1,0
bUp=1,2,0
bRight=1,3,0
bNewFilter=1,4,0

if icons follow in the same order in the GlyphBMP-patch.png

of course, GlyphBMP-patch.png may be named gbpatch.png, be of type .bmp (file
extension must be changed accordingly!) or .jpg, as you want.

3

Dienstag, 26. Oktober 2004, 06:45

Glyphs fuer Beta 3

Du haettest sie besser uebersetzen sollen.
[size=1]Man möchte manchmal Kannibale sein, nicht um den oder jenen aufzufressen, sondern um ihn auszukotzen. Johann Nestroy.[/size]

4

Dienstag, 26. Oktober 2004, 07:08

Glyphs fuer Beta 3

Bei Gelegenheit...

5

Dienstag, 26. Oktober 2004, 23:17

Glyphs fuer Beta 3

Zitat

Du haettest sie besser uebersetzen sollen.

Ist es nicht eher deine Aufgabe. :D

eCerberus

unregistriert

6

Mittwoch, 27. Oktober 2004, 07:13

Glyphs fuer Beta 3

Hehe.. das wäre ja noch schöner. Zwischen Sprachdatei, die sicher genug Arbeit macht und ner Mailinglist-Email ist ja ein himmelweiter Unterschied. :pfeif:

7

Sonntag, 14. November 2004, 15:40

Glyphs fuer Beta 3

Hallo,

Ein großer Vorteil war es bisher, daß man auch einzelne Symbole über ein Grafikprogramm ausschneiden und austauschen konnte. Das sollte auch weiterhin (und hoffentlich wesentlich einfacher innerhalb des Programmes) möglich sein. Der Übergang zu kompletten Skin-Lösungen, wie sie ja schon für Mozilla bekannt sind, ist sicherlich für die meisten ein komfortabler Weg, aber bisweilen möchte man ja auch selber etwas experimentieren. Die individuelle Anpassung von Symbolen ist jedenfalls für eine Reihe von Nutzern, die ich kenne, das zentrale Argument (neben einem wirklich unschlagbar übersichtlichen Postfachinspektor), bei der Fledermaus trotz der fast schon kafkaesken Fehlerentwicklung zu bleiben.

MhG C


8

Sonntag, 15. Mai 2005, 12:00

Glyphs fuer Beta 3

Um in der Version v3.5 weiterhin ein externes Glyph einzubinden, muss die 'Batskin.XML' entsprechend modifiziert werden. Die Priorität der 'Bitmap ID' wurde in der aktuellen TheBat! Version geändert, die IDs 0, 1 und 2 sind nun reserviert für die internen Glyphs und dürfen nicht verwendet werden.

siehe auch hier

de:bugger

9

Sonntag, 15. Mai 2005, 19:25

Glyphs fuer Beta 3

Ich hab’ sie mir mal angetan, die neueste Kreation aus Nahost. Rein interessehalber. Quasi aus purer Neugier. Kommentar dazu? Nein, lieber nicht.


Zitat

Bitte posted hier Bugs, Verbesserungsmoeglichkeiten und Vorschlaege. Das Boardteam wird diese an den zustaendigen Entwickler bei RitLabs weiterleiten.

Aber:

Ändert man in der Konfigurationsdatei ”batskin.xml” die Werte des Eintrags <size id="MenuIcons" width="16" height="16" /> auf andere als die vorgegebenen, weil man, der Entsprechung folgend, die Icongröße im Menü seinen Erfordernissen/Wünschen nach variieren, oder aber durch setzen der Werte auf ”0” die Anzeige der Menüicons sogar vollständig deaktivieren will (eine alternative Variante ist mir derzeit nicht bekannt), dann hat diese Manipulation nicht nur unmittelbare Auswirkungen auf die Menüoptik, sondern auch dramatische Konsequenzen auf die Darstellung der Icons der Symbolleiste ”Formatierung” im Nachrichteneditor. Der Kollateralschaden bei der Modifikation <size id="MenuIcons" width="0" height="0" /> ist dabei besonders frappierend.

Wieso um alles in der Welt besteht eine Symbiose zwischen Menüdarstellung und Symbolleiste?

[gelöscht durch Administrator]
Öffne die Augen, und dann öffne sie erneut.

10

Sonntag, 15. Mai 2005, 19:55

Glyphs fuer Beta 3

Naja, wer schreibt da schon wirklich 0 Pixel rein... ausser Dir natürlich :D
Ein Auto hat einen Platten. Woran erkennt man, dass der Fahrer Informatiker ist?
Ganz einfach: Er überprüft, ob der Fehler auch an einem anderen Reifen auftritt.

11

Sonntag, 15. Mai 2005, 20:50

Glyphs fuer Beta 3

Ha ha - ja, auch wieder irgendwie war. Aber wie sonst kann ich die Darstellung der Icons im Menü verhindern? Ebensogut könnte meine Intention ja auch darin bestehen, die Icons zu vergrößern/verkleinern, was den gleichen negativen Effekt, wie er obig beschrieben wurde, zur Folge hat.
Öffne die Augen, und dann öffne sie erneut.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Leela« (15. Mai 2005, 21:58)


12

Dienstag, 19. Juli 2005, 23:32

Glyphs fuer Beta 3

Ich wär ja schon froh, wenn man bFetchAllAccounts einen Button zuordnen könnte. In der XML steht der Befehl drin und das Icon existiert auch, aber der Button wird einfach nicht grafisch angezeigt.
Am liebsten hätte ich ja einen Button für "Send + Check For All"

13

Mittwoch, 20. Juli 2005, 08:03

Glyphs fuer Beta 3

Buttons sind nicht möglich. Ob das jemals möglich sein wird, ist fraglich.
Thunderbird Add-on Clean Subject: Aneinanderreihungen von Präfixen ("Re: AW: Re: AW:") oder Kürzel wie "[SPAM]" oder "****SPAM****" automatisch entfernen.

14

Mittwoch, 20. Juli 2005, 10:03

Glyphs fuer Beta 3

Zitat

Buttons sind nicht möglich. Ob das jemals möglich sein wird, ist fraglich.

Funktioniert hier wunderbar. :thumbup:

Für den Button "Senden und Empfangen für alle Konten" nehme folgenden Code, und füge ihn in die 'tbuser.def' ein.:

<snip>

property layout [MainForm_StandardToolbar] type crc32("toolbar")
{
item [MailerForm].[mSendCheckAll]
image [bFetchAllAccounts]

<hr>
container combo [MailerForm].[mAccountFetchMail]
{

<snip>


Beim Minimal Design sieht die Toolbar mit dem Button für "Senden und Empfangen für alle Konten" dann so aus wie im Screenshot.


9Val hat die Technik des Einfügens eines benutzerdefinierten Buttons in einer Mail erklärt:
http://www.mail-archive.com/tbbeta@thebat....m/msg60791.html

de:bugger :thumbup:

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »de-bugger« (11. Oktober 2005, 14:41)


adjustGirl

unregistriert

15

Donnerstag, 21. Juli 2005, 00:36

Glyphs fuer Beta 3

:cry: wo muss man das einfügen?
hab schon alles probiert. Da starte TB nicht mehr.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
user context crc32("version") "3.51.4"
user context crc32("theme") "Default"
property layout [MainForm_StandardToolbar] type crc32("toolbar")
{
  container combo [MailerForm].[mAccountFetchMail]
  {
    item [MailerForm].[mSelectGetAccountNames]
    <hr>
    item [MailerForm].[mFetchAllAccounts]
    item [MailerForm].[mSendCheckAll]
  }
  container combo [MailerForm].[mAccountSendMail]
  {
    item [MailerForm].[mSelectSendAccountNames]
    <hr>
    item [MailerForm].[mSendAllQueued]
    item [MailerForm].[mSendCheckAll]
  }
  <hr>

16

Donnerstag, 21. Juli 2005, 00:46

Glyphs fuer Beta 3

Zitat

:cry:  wo muss man das einfügen?


Der Code kommt in die tbuser.def, ich hab mal eine Default tbuser.def mit integriertem Senden+Empfangen Button beigelegt.

de:bugger

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »de-bugger« (21. Juli 2005, 10:06)


adjustGirl

unregistriert

17

Freitag, 22. Juli 2005, 22:16

Glyphs fuer Beta 3

@de:bugger danke :) Da kommt aber kein Bild nur Text. Und das verschiept die ganze Leiste. :denk:

18

Freitag, 22. Juli 2005, 23:00

Glyphs fuer Beta 3

Hast du das aktuelle ZIP gezogen?
Ich hatte zuerst eine modifizierte tbuser.def hochgeladen. Mit der tbuser.def aus dem aktuellen ZIP erhalte ich hier den Button.

Nachtrag: Anscheinend löscht TheBat! eigenständig Einträge die es nicht mag. Ich hatte hier plötzlich auch keinen Button mehr. Kontrolliere mal ob folgender Eintrag noch in der tbuser.def (Zeile 5+6) drin steht:

Zitat

{
item [MailerForm].[mSendCheckAll]
  image [bFetchAllAccounts]
<hr>


de:bugger

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »de-bugger« (22. Juli 2005, 23:13)


19

Samstag, 23. Juli 2005, 03:35

Glyphs fuer Beta 3

Es sollte helfen, wenn man die Datei danach mit einem Schreibschutz versieht. Sonst wird, wenn man irgendwo was anderes ändert, der image-Befehl entfernt.

20

Donnerstag, 18. August 2005, 20:15

Glyphs fuer Beta 3

Hallo Leute,
ich möchte mal einige alte Glyphs in 3.5 Format bringen. Ich hab' mir auch die Anleitung von bat-mail.de.vu gezogen.
Jedoch wird dort beschrieben was eine batskin.xml-Datei haben soll.
Mein TB läuft jetzt schon ne Weile problemlos und ich dachte ich müsste demzufolge auch eine xml-Datei haben. Weitgefehlt !!!
Also was hab' ich vergessen?
Kann mir noch jemand ein Beispielpaket zusammenstellen?
Gruss
Rudi