BadaBoard Themes erstellen: Unterschied zwischen den Versionen

Aus mobilenations.de Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 99: Zeile 99:




* '''Forum'''  - Die 1. Übersicht eines Forums
* '''Forum'''  - Die 1. Übersicht eines Forums<br/>''BackColor''
** '''Header'''  
** '''Header'''  
** '''List'''  - Die Liste der Foren bzw. Topics
** '''List'''  - Die Liste der Foren bzw. Topics<br/>''BackColor''
*** '''ForumElement'''
*** '''ForumElement'''
**** '''MainText'''
**** '''SubText'''
*** '''TopicElement'''
*** '''TopicElement'''
**** '''MainText'''
**** '''SubText'''
** '''Footer'''
** '''Footer'''


Zeile 110: Zeile 114:
** '''Header'''  
** '''Header'''  
** '''List'''  - Die Liste der Beiträge im Topic
** '''List'''  - Die Liste der Beiträge im Topic
*** '''PostingElement'''
*** '''Posting'''
**** Siehe PostingPopUp->Posting für untergeordnete Elemente
** '''Footer'''
** '''Footer'''




* '''PostingPopUp'''   
* '''PostingPopUp'''   
** '''Posting'''
*** '''MainText'''<br/>''FontSize'', ''FontColor''
*** '''QuotedText'''<br/>''Siehe MainText''
*** '''SpoilerText'''<br/>''Siehe MainText''
*** '''LinkText'''<br/>''Siehe MainText''
* '''NewPosting'''
* '''ReplyPosting'''




Zeile 120: Zeile 135:
** '''List'''
** '''List'''
** '''Footer'''
** '''Footer'''
* '''NewPM'''
* '''ReplyPM'''

Version vom 12. April 2012, 11:43 Uhr

badaBoard Themes bestehen aus einer pseudo-CSS Datei und einer Ansammlung von Icons. Pseudo-CSS, weil die Datei zwar im groben so aussieht, wie eine CSS Datei, aber nur wenig mit dem echten CSS zu tun hat. Um ein Theme in badaBoard zu importieren, muss die CSS Datei zusammen mit den Bildern in einer Zip Datei verpackt werden, die genauso heisst, wie die CSS Datei. Der Name des Themes ergibt sich dabei aus dem Namen der Zip bzw. CSS Datei. Weichen die Namen voneinander ab, wird badaBoard die Datei nicht als gültiges Theme erkennen.

badaBoards Pseudo-CSS

So sieht die aktuelle DefaultStyle.css Datei aus:

// Default-Style

MainForm.List {
	ForumIcon : /forum/forumicon.png
	EditForumIcon : /forum/forumicon_edit.png
	RemoveForumIcon : /forum/forumicon_remove.png
}

UserCP.Footer {
	PMListIcon : /UserCP/mail.png
	PMNewIcon : /UserCP/mailnew.png
	SubscriptionIcon : /UserCP/subscription.png
}

UserCP.List {
	SweepPMDelete : /UserCP/maildelete.png
	SweepDeSubscribe : /UserCP/desubscribe.png
}

*.List {
	BackColor : #000000
	NewPostingBackColor : #282828
	FontColor : #FFFFFF
	TabbarColor : #000000
	
	ForumIcon : /forum/forumicon.png
	UserCPIcon : /forum/user_cp.png
	TopicIcon : /forum/topicicon.png
	StickyIcon : /forum/stickytopicicon.png
	AnnouncmentIcon : /forum/announcmenttopicicon.png
	SweepTopicLastPost : /forum/topic_last.png
	SweepTopicSubscribe : /forum/topic_subscribe.png
	NewTopicIcon : /forum/topic_new.png
	ActiveTopicIcon : /forum/topic_active.png
	More : /forum/topic_more.png
}

*.List.Tabbar {
	BackColor: #bd520f
}

*.List.Posting {
	
}

*.MainText {
	FontSize : 30
	FontColor : #FFFFFF
}

*.SubText {
	FontSize : 22
	FontColor : #FFFFFF
}

*.QuotedText {
	FontSize : 22
	FontColor : #FFFFFF
	BackColor : #333333
}

*.SpoilerText {
	FontSize : 16
	FontColor : #333333
	BackColor : #111111
}

*.LinkText {
	FontColor : #0000FF
}

Posting.List {
	ReplyIcon : /forum/reply_new.png
	
	ElementBackground : /formtopicelement/background100a.9.png
	ElementBackground2 : /formtopicelement/background100b.9.png
	
}

Posting.List.MainText {
	FontSize : 26
	FontColor : #FFFFFF
}


Die App ist in folgende Bereiche aufgeteilt, die als ID für die CSS Datei dienen:

  • ForumList - Das erste Fenster, mit der Auswahl der Foren.
    • List
    • Footer


  • Forum - Die 1. Übersicht eines Forums
    BackColor
    • Header
    • List - Die Liste der Foren bzw. Topics
      BackColor
      • ForumElement
        • MainText
        • SubText
      • TopicElement
        • MainText
        • SubText
    • Footer


  • Topic
    • Header
    • List - Die Liste der Beiträge im Topic
      • Posting
        • Siehe PostingPopUp->Posting für untergeordnete Elemente
    • Footer


  • PostingPopUp
    • Posting
      • MainText
        FontSize, FontColor
      • QuotedText
        Siehe MainText
      • SpoilerText
        Siehe MainText
      • LinkText
        Siehe MainText
  • NewPosting


  • ReplyPosting


  • UserCP - Das User Control-Panel
    • List
    • Footer


  • NewPM


  • ReplyPM