Browse Source

Refactor. Styles fixes

Ivan Arkhipov 6 years ago
parent
commit
4e8c3a74ee

+ 2 - 1
main.cpp

@@ -71,10 +71,11 @@ int main(int argc, char *argv[]){
     }
 
     MainWindow::getInstance()->show();
+    MainWindow::getInstance()->setupWindow();
 
     QFile styleF;
     QString skin = Skin::getInstance()->getSkinName();
-    styleF.setFileName(QApplication::applicationDirPath() + "styles/" + skin + "/style.css");
+    styleF.setFileName(QApplication::applicationDirPath() + "/styles/" + skin + "/style.css");
     styleF.open(QFile::ReadOnly);
     QString qssStr = styleF.readAll();
 

+ 9 - 6
mainwindow.cpp

@@ -20,10 +20,15 @@ MainWindow::MainWindow( QMainWindow* parent )
     , dx(0)
     , dy(0) {
 
-    ui->setupUi(this);
 
+
+}
+
+void MainWindow::setupWindow() {
+    ui->setupUi(this);
     if(!FileSystem::fileExists(QApplication::applicationDirPath() + "/settings.ini"))
         AConfig::getInstance()->saveConfig();
+    loadConfig();
 
     QString skin = Skin::getInstance()->getSkinName();
     setWindowIcon(QIcon(":/res/styles/" + skin + "/icon6.png"));
@@ -31,10 +36,8 @@ MainWindow::MainWindow( QMainWindow* parent )
     QCoreApplication::setOrganizationDomain(ORGANIZATION_DOMAIN);
     QCoreApplication::setApplicationName(APPLICATION_NAME);
     setWindowTitle("ВКО: Наследие");
-    show();
 
     // Проводим подготовку к запуску
-    loadConfig();
     Skin::getInstance()->loadSkin();
     loadNews();
 
@@ -49,7 +52,7 @@ MainWindow::MainWindow( QMainWindow* parent )
 
     qInfo("%s:%i: %s", __FILE__, __LINE__, "Оформляем главное окно.");
     QPixmap maskPix(":/res/styles/" + skin + "/bg.png");
-    QPixmap maskPixLocal(QApplication::applicationDirPath() + "styles/" + skin + "/bg.png");
+    QPixmap maskPixLocal(QApplication::applicationDirPath() + " /styles/" + skin + "/bg.png");
     maskPix = maskPix.isNull() ? maskPixLocal : maskPix;
     this->setMask(maskPix.mask());
 
@@ -109,7 +112,7 @@ void MainWindow::loadConfig() {
 }
 
 void MainWindow::loadNews(){
-    qInfo("Загружаем скин лаунчера");
+    qInfo("Загружаем новости");
     qInfo("%s:%i: %s", __FILE__, __LINE__, "Загрузка новостей с сайта");
     QString response = ANetwork::getInstance()->query(AConfig::getInstance()->getValue("Network", "news"));
 
@@ -172,7 +175,7 @@ void MainWindow::loadHelp(){
 
         QFile styleF;
         QString skin = Skin::getInstance()->getSkinName();
-        styleF.setFileName(QApplication::applicationDirPath() + "styles/" + skin + "/readme.css");
+        styleF.setFileName(QApplication::applicationDirPath() + "/styles/" + skin + "/readme.css");
         if(styleF.open(QFile::ReadOnly)){
            stylehtml = "<html><head><style type=\"text/css\">" + stylehtml + styleF.readAll();
         }

+ 2 - 1
mainwindow.h

@@ -17,7 +17,7 @@ class MainWindow : public QMainWindow {
     Q_OBJECT
 
 private:
-    explicit MainWindow(QMainWindow *parent = 0);
+    explicit MainWindow(QMainWindow *parent = nullptr);
     ~MainWindow();
 
 public:
@@ -26,6 +26,7 @@ public:
         return &instance;
     }
 
+    void setupWindow();
     bool eventFilter(QObject *obj, QEvent *event);
     void setState(QString state);
     void applyShadow(QWidget *obj, QString color, int blur, int offset_x, int offset_y);

+ 3 - 3
skin.cpp

@@ -150,14 +150,14 @@ void Skin::replaceSkin(QString name){
 
     QFile styleF;
     QString skin = getSkinName();
-    styleF.setFileName(QApplication::applicationDirPath() + "styles/" + name + "/style.css");
+    styleF.setFileName(QApplication::applicationDirPath() + "/styles/" + name + "/style.css");
     styleF.open(QFile::ReadOnly);
     QString qssStr = styleF.readAll();
 
     qApp->setStyleSheet(qssStr);
 
     QPixmap maskPix(":/res/styles/" + name + "/bg.png");
-    QPixmap maskPixLocal(QApplication::applicationDirPath() + "styles/" + name + "/bg.png");
+    QPixmap maskPixLocal(QApplication::applicationDirPath() + "/styles/" + name + "/bg.png");
     maskPix = maskPix.isNull() ? maskPixLocal : maskPix;
     MainWindow::getInstance()->setMask(maskPix.mask());
 
@@ -180,7 +180,7 @@ void Skin::replaceSkin(QString name){
     MainWindow::getInstance()->loadHelp();
 
     QMovie * movie = new QMovie(":/res/styles/" + skin + "/loader.gif");
-    if(!movie->isValid()) movie = new QMovie(QApplication::applicationDirPath() + "styles/" + skin + "/loader.gif");
+    if(!movie->isValid()) movie = new QMovie(QApplication::applicationDirPath() + "/styles/" + skin + "/loader.gif");
     MainWindow::getInstance()->ui->loader->setMovie(movie);
     movie->setScaledSize(QSize(MainWindow::getInstance()->ui->loader->width(), MainWindow::getInstance()->ui->loader->height()));
     movie->start();

+ 1 - 0
styles/book/readme.css

@@ -0,0 +1 @@
+.title {color:#453425; font-size:14px; font:"Sans Serif"; font-weight:bold;}

+ 246 - 0
styles/book/skin.ini

@@ -0,0 +1,246 @@
+[mainWindow]
+width=800
+height=452
+left=0
+top=0
+
+[minimizeButton]
+width=18
+height=18
+left=725
+top=30
+
+[closeButton]
+width=18
+height=18
+left=750
+top=30
+
+[mainButton]
+width=150
+height=28
+left=525
+top=155
+
+[optButton]
+width=150
+height=28
+left=525
+top=270
+
+[newsButton]
+width=150
+height=28
+left=620
+top=100
+
+[helpButton]
+width=150
+height=28
+left=620
+top=215
+
+[aboutButton]
+width=150
+height=28
+left=625
+top=323
+
+[enterButton]
+width=150
+height=28
+left=525
+top=370
+text=\x412\x43e\x439\x442\x438
+
+[titleLabel]
+width=130
+height=30
+left=223
+top=75
+
+[hintLabel]
+width=330
+height=20
+left=130
+top=360
+
+[exthintLabel]
+width=370
+height=20
+left=130
+top=375
+
+[mainbox]
+width=370
+height=230
+left=150
+top=115
+
+[mainboxImage]
+width=130
+height=255
+left=430
+top=2050
+
+[optbox]
+width=350
+height=240
+left=135
+top=115
+
+[optboxImage]
+width=100
+height=240
+left=50
+top=2150
+
+[newsbox]
+width=430
+height=230
+left=115
+top=120
+
+[newsboxImage]
+width=100
+height=245
+left=445
+top=2150
+
+[helpbox]
+width=400
+height=250
+left=120
+top=115
+
+[helpboxImage]
+width=120
+height=230
+left=30
+top=2200
+
+[aboutbox]
+width=400
+height=240
+left=125
+top=110
+
+[aboutboxImage]
+width=75
+height=235
+left=460
+top=2200
+
+[dialogHeader]
+width=400
+height=28
+left=0
+top=0
+align=center
+
+[okButton]
+width=100
+height=35
+left=0
+top=0
+
+[cancelButton]
+width=100
+height=35
+left=0
+top=0
+
+[serversbox]
+width=800
+height=65
+left=21
+top=414
+
+[couponButton]
+width=150
+height=48
+left=380
+top=75
+
+[couponTitle]
+width=150
+height=18
+left=380
+top=75
+
+[footRed]
+width=570
+height=18
+left=100
+top=400
+
+[footYellow]
+width=570
+height=18
+left=100
+top=400
+
+[loader]
+width=69
+height=28
+left=385
+top=340
+
+[labelVersion]
+width=150
+height=24
+left=32
+top=437
+
+[goOriginal]
+width=70
+height=70
+left=45
+top=40
+text=del
+shadow=1
+shcolor=#111
+shblur=7
+shx=2
+shy=2
+
+[goLocal]
+width=70
+height=70
+left=130
+top=40
+text=del
+shadow=1
+shcolor=#111
+shblur=7
+shx=2
+shy=2
+
+[goCancel]
+width=70
+height=70
+left=215
+top=40
+text=del
+shadow=1
+shcolor=#111
+shblur=7
+shx=2
+shy=2
+
+[repairButton]
+width=300
+height=26
+left=10
+top=60
+
+[mainTitle]
+width=570
+height=29
+left=80
+top=29
+
+[htmlColors]
+a=#453425
+h3=#453425
+p=#111

+ 203 - 0
styles/book/style.css

@@ -0,0 +1,203 @@
+QMainWindow {
+	background-color: transparent;
+	background-image: url(:/res/styles/book/bg.png);
+	min-width:800px;
+	min-height:582px;
+	
+}
+
+QLabel, QCheckBox { color: #333; font: 8pt "Arial";	}
+
+QGroupBox{
+	border:none;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+}
+
+QGroupBox::title { color: #453425;	 }
+QTextBrowser { border:none; }
+
+QPushButton {
+	border-image: url(:/res/styles/vintage/button2.png) 0 0 0 0 stretch stretch;
+	color: #EFE1AF;/*#F8E600*/
+	font: 12pt "Segoe Print";
+	padding:5px;
+}
+
+QPushButton:hover { color: #F9EA20; }
+QPushButton:pressed { background-color: transparent; }
+QPushButton:hover:!pressed{ border: 1px solid red; }
+ 
+ 
+QLabel#titleLabel {
+	color: #453425; /*#FBB540*/
+	font: 16pt "Segoe Script";
+	 
+}
+
+ QLabel#mainTitle {
+	color: #453425; /*#FBB540*/
+	font: 18pt "Segoe Script";
+	font-weight:bold;	 
+}
+ 
+QLabel#hintLabel{
+	color: #453425;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+} 
+
+QLabel#hintLabel, QLabel#news1Title, QLabel#news2Title, QLabel#news3Title , QLabel#news4Title{
+	color: #453425;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+	text-decoration:none;
+}
+
+QLabel#news1Image, QLabel#news2Image, QLabel#news3Image , QLabel#news4Image{
+	border-image: url(:/res/styles/vintage/plane.png);
+	padding:3px;
+}
+
+ QLabel#exthintLabel{
+	color: #333;
+	font: 8pt "Arial";	 
+ }  
+ 
+ QLabel#textsTitle, QLabel#imagesTitle, QLabel#soundsTitle, QLabel#loadscreensTitle, QLabel#fontsTitle, QLabel#videosTitle{
+	color: #453425;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+ }  
+ 
+QLabel#textsStatus, QLabel#imagesStatus, QLabel#soundsStatus, QLabel#loadscreensStatus, QLabel#fontsStatus, QLabel#videosStatus{
+	color: #333;
+	font: 10pt "TrebushetMS";
+}   
+ 
+QPushButton#lotropathButton{
+	font: 10pt "MS Shell Dlg 2";
+	color: #453425;
+	border-image: url(:/res/styles/vintage/folder.png);
+	
+} 
+
+/*QLabel#mainboxImage{ border-image: url(:/res/styles/vintage/gandalf.png); } 
+QLabel#optboxImage{ border-image: url(:/res/styles/vintage/boromir.png); }  
+QLabel#newsboxImage{ border-image: url(:/res/styles/vintage/saruman.png); }
+QLabel#helpboxImage{ border-image: url(:/res/styles/vintage/elrond.png); }  
+QLabel#aboutboxImage{ border-image: url(:/res/styles/vintage/eowin.png); }*/
+  
+
+QTextBrowser {
+	background:transparent;
+	color:#000;
+	font: 10pt "TrebushetMS";	
+}
+
+ QLabel#programmers, QLabel#designers, QLabel#translators, QLabel#helpers, QLabel#moderators{
+	color: #453425;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+ } 
+
+QLabel#skinLabel{
+	color: #453425;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+} 
+
+QPushButton#minimizeButton { border-image: url(:/res/styles/vintage/minimize.png) 0 0 0 0 stretch stretch; }
+QPushButton#closeButton { border-image: url(:/res/styles/vintage/close.png) 0 0 0 0 stretch stretch; }
+
+QGroupBox#dialogbox{ background:rgba(0,0,0,0.4); }
+QGroupBox#dialog{ border-image: url(:/res/styles/book/start_window.png); }
+
+QGroupBox QLabel#dialogHeader, QGroupBox#startframe QLabel#goHeader{
+	padding-left:7px;
+	color: #453425;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+	margin-left:8px;
+	margin-right:8px;
+	margin-top:5px;
+}
+
+QGroupBox#startframe QLabel#goHeader{ margin-left:105px; }
+
+QGroupBox QLabel#dialogImage{ margin:3px; }
+
+QGroupBox QLabel#dialogInfo{	
+	margin:7px;
+	padding:7px;
+	font: 10pt "TrebushetMS";
+	color:#333;
+}
+
+QPushButton#okButton, QPushButton#cancelButton { margin-top:7px; }
+
+QLabel#Arkenstone, QLabel#Belegaer, QLabel#Brandywine, QLabel#Crickhollow, QLabel#Evernight, QLabel#Gladden, QLabel#Gwaihir,
+QLabel#Lamannia, QLabel#Landroval, QLabel#Laurelin, QLabel#Sirannon, QLabel#Bullroarer, QLabel#Crickhollow { 
+	border-image: url(:/res/styles/vintage/plane2.png);
+	background-color: #555555; /*#8A0808 #173B0B*/
+	color:#E8D575;
+}
+
+QPushButton#couponButton{
+	font:14px;
+	color: #333;
+	border-image: none;
+	background:transparent;
+	
+} 
+
+QPushButton#couponButton:hover{ border:none; } 
+
+QLabel#couponTitle{	color: #333;font-weight:bold;}
+QLabel#lotropathLabel{ border:#BFBFBF solid 1px;border-width: 1px; background-color:rgba(19,0,0,0.25); padding-left:2px; }
+QLabel#footRed, QLabel#footYellow{font-size:13px; background: rgba(255,255,255,0.1); color: #000; padding-left:5px;}
+QLabel#loader{ background:transparent;}
+
+QPushButton#enButton{ border-image: url(:/res/styles/vintage/flag_en.png) 0 0 0 0 stretch stretch;} 
+QPushButton#deButton{ border-image: url(:/res/styles/vintage/flag_de.png) 0 0 0 0 stretch stretch;}
+QPushButton#frButton{ border-image: url(:/res/styles/vintage/flag_fr.png) 0 0 0 0 stretch stretch;}
+QPushButton#enButton:disabled, QPushButton#deButton:disabled, QPushButton#frButton:disabled{border-width: 1px; background-color: rgba(255,255,255,0.4);} 
+
+
+QComboBox, QListView::item:selected{
+	color:#001;
+	background-color:rgba(0,0,0,0.1);
+	padding:1px;
+	subcontrol-origin: padding;
+}
+
+QComboBox::drop-down{border-width:1px;}
+QComboBox::down-arrow{border-image:url(:/res/styles/vintage/downarrow.png);}
+QComboBox QAbstractItemView::item{ padding:5px; }
+
+QPushButton#goCancel{ border-image: url(:/res/styles/book/gocancel.png) 0 0 0 0 stretch stretch;}
+QPushButton#goLocal{ border-image: url(:/res/styles/book/gorur.png) 0 0 0 0 stretch stretch;}
+QPushButton#goEnButton{ border-image: url(:/res/styles/book/goenr.png) 0 0 0 0 stretch stretch;}
+QPushButton#goDeButton{ border-image: url(:/res/styles/book/goder.png) 0 0 0 0 stretch stretch;}
+QPushButton#goFrButton{ border-image: url(:/res/styles/book/gofrr.png) 0 0 0 0 stretch stretch;}
+
+QGroupBox#startbox{
+	background:rgba(0,0,0,0.4);
+}
+
+QGroupBox#startframe{
+	background:rgba(0,0,0,0.4);
+	border-image: url(:/res/styles/book/start_window.png) 0 0 0 0 stretch stretch;
+}
+
+QGroupBox#startframe QLabel#goTitle{
+	/*border-image: url(:/res/styles/vintage/header.png);*/
+	color: #4B2708;
+	font: 11pt "TrebushetMS";
+}
+
+
+
+QLabel#goHint{ color:#4B2708; }
+
+QLabel#labelVersion{ color:#111; }

+ 9 - 0
styles/lotro/readme.css

@@ -0,0 +1,9 @@
+.title{
+    color: #f7d77a; 
+    font: 11pt "Microsoft Sans Serif";
+    margin-top:20px;
+}
+
+p{
+    margin-top:5px;
+}

+ 273 - 0
styles/lotro/skin.ini

@@ -0,0 +1,273 @@
+[mainWindow]
+width=800
+height=582
+left=0
+top=0
+
+[minimizeButton]
+width=30
+height=25
+left=710
+top=72
+
+[closeButton]
+width=30
+height=25
+left=740
+top=72
+
+[mainButton]
+width=136
+height=26
+left=597
+top=261
+
+[optButton]
+width=136
+height=26
+left=597
+top=300
+
+[newsButton]
+width=136
+height=26
+left=597
+top=339
+
+[helpButton]
+width=136
+height=26
+left=597
+top=377
+
+[aboutButton]
+width=136
+height=26
+left=597
+top=414
+
+[enterButton]
+width=87
+height=25
+left=620
+top=460
+text=del
+
+[titleLabel]
+width=130
+height=30
+left=243
+top=185
+
+[hintLabel]
+width=290
+height=20
+left=97
+top=460
+
+[exthintLabel]
+width=430
+height=20
+left=97
+top=477
+
+[mainbox]
+width=450
+height=230
+left=135
+top=215
+
+[mainboxImage]
+width=130
+height=255
+left=450
+top=190
+
+[optbox]
+width=350
+height=240
+left=125
+top=210
+
+[optboxImage]
+width=100
+height=240
+left=70ы
+top=190
+
+[newsbox]
+width=430
+height=230
+left=80
+top=225
+
+[newsboxImage]
+width=100
+height=245
+left=475
+top=190
+
+[helpbox]
+width=460
+height=250
+left=87
+top=215
+
+[helpboxImage]
+width=120
+height=230
+left=87
+top=200
+
+[aboutbox]
+width=460
+height=240
+left=90
+top=220
+
+[aboutboxImage]
+width=75
+height=235
+left=490
+top=195
+
+[dialogHeader]
+width=400
+height=45
+left=0
+top=0
+align=center
+
+[okButton]
+width=114
+height=29
+left=0
+top=0
+
+[cancelButton]
+width=114
+height=29
+left=0
+top=0
+
+[serversbox]
+width=800
+height=65
+left=21
+top=514
+
+[couponButton]
+width=150
+height=48
+left=591
+top=167
+
+[couponTitle]
+width=150
+height=18
+left=591
+top=162
+
+[footRed]
+width=570
+height=18
+left=62
+top=502
+
+[footYellow]
+width=570
+height=18
+left=50
+top=502
+
+[loader]
+width=34
+height=34
+left=516
+top=459
+
+[labelVersion]
+width=150
+height=24
+left=325
+top=540
+
+[textBrowser]
+width=470
+height=210
+left=10
+top=10
+
+[translatorslist]
+width=450
+height=110
+left=10
+top=75
+
+[helpers]
+width=420
+height=18
+left=10
+top=168
+
+[helperslist]
+width=420
+height=36
+left=10
+top=183
+
+[repairButton]
+width=254
+height=26
+left=22
+top=85
+
+[checkMicro]
+width=294
+height=28
+left=10
+top=59
+
+[goOriginal]
+width=94
+height=56
+left=55
+top=33
+
+[goLocal]
+width=94
+height=56
+left=180
+top=33
+
+[goCancel]
+width=114
+height=26
+left=110
+top=128
+text=\x41e\x442\x43c\x435\x43d\x430
+
+[goTitle]
+width=270
+height=26
+left=30
+top=88
+text=\x412\x44b\x431\x435\x440\x438\x442\x435 \x44f\x437\x44b\x43a \x434\x43b\x44f \x43f\x440\x43e\x434\x43e\x43b\x436\x435\x43d\x438\x44f
+
+[dialogInfo]
+width=100%
+height=100%
+left=20
+top=40
+
+[htmlColors]
+a=#f7d77a[htmlColors]
+a=#f7d77a
+h3=#f7d77a
+p=#FFF
+
+[designButton]
+width=144
+height=29
+left=-400
+top=120

+ 227 - 0
styles/lotro/style.css

@@ -0,0 +1,227 @@
+QMainWindow {
+	background-color: transparent;
+	background-image: url(:res/styles/lotro/bg.png);
+	min-width:800px;
+	min-height:582px;
+}
+
+QLabel, QCheckBox {
+	font: 8pt "TrebushetMS";	
+	color: #FFF;
+}
+
+QGroupBox{ 
+	background-color:transparent;
+	border:none;
+	font: 11pt "Microsoft Sans Serif";
+}
+
+QGroupBox::title {
+	color: #f7d77a;
+	font: 11pt "Microsoft Sans Serif";
+
+}
+
+QTextBrowser {
+	border:none;
+}
+
+QPushButton {
+	background-color: transparent;
+	background-image:url(:res/styles/lotro/button.png) stretch; 
+	color: #FFF;/*#F8E600*/
+	font: 12pt "Lucida Sans Unicode";
+
+}
+
+QPushButton:hover { color: #f2ce2e; }
+QPushButton:pressed { background-color: transparent; }
+QPushButton:hover:!pressed{ border: 1px solid transparent; }
+ 
+QPushButton#enterButton { border-image: url(:res/styles/lotro/enter.png) 0 0 0 0 stretch stretch; background:none; }  
+QPushButton#enterButton:hover { border-image: url(:res/styles/lotro/enter_hover.png) 0 0 0 0 stretch stretch; } 
+
+
+QLabel#titleLabel {
+	color: #FFF;
+	font: 14pt "Lucida Sans Unicode";
+}
+ 
+QLabel#hintLabel, QLabel#news1Title, QLabel#news2Title, QLabel#news3Title , QLabel#news4Title{
+	font: 11pt "Microsoft Sans Serif";
+}
+
+QLabel#hintLabel{
+	color: #f7d77a;
+	font: 12pt "Lucida Sans Unicode";
+}
+
+QLabel#news1Image, QLabel#news2Image, QLabel#news3Image , QLabel#news4Image{
+	border-image: url(:res/styles/vintage/plane.png);
+	padding:3px;
+}
+
+ QLabel#exthintLabel{
+	color: rgb(255, 255, 255);
+	font: 8pt "Microsoft Sans Serif";	 
+}  
+
+ QLabel#textsTitle, QLabel#imagesTitle, QLabel#soundsTitle, QLabel#loadscreensTitle, QLabel#fontsTitle, QLabel#videosTitle{
+	color: #f7d77a;
+	font: 11pt "Microsoft Sans Serif";
+}  
+
+QLabel#textsStatus, QLabel#imagesStatus, QLabel#soundsStatus, QLabel#loadscreensStatus, QLabel#fontsStatus, QLabel#videosStatus{
+	color: #FFF;
+	font: 10pt "TrebushetMS";
+}   
+
+QPushButton#lotropathButton{
+	background:none; 
+	border-image: url(:res/styles/vintage/folder.png);
+} 
+
+/*QLabel#mainboxImage{ border-image: url(:res/styles/vintage/gandalf.png); } 
+QLabel#optboxImage{ border-image: url(:res/styles/vintage/boromir.png); }  
+QLabel#newsboxImage{ border-image: url(:res/styles/vintage/saruman.png); }
+QLabel#helpboxImage{ border-image: url(:res/styles/vintage/elrond.png); }  
+QLabel#aboutboxImage{ border-image: url(:res/styles/vintage/eowin.png); }*/
+  
+QTextBrowser {
+	background:transparent;
+	color:#FFF;
+	font: 10pt "TrebushetMS";	
+}
+
+ QLabel#programmers, QLabel#designers, QLabel#translators, QLabel#helpers, QLabel#moderators{
+	color: #f7d77a;
+	font: 11pt "Microsoft Sans Serif";
+	text-decoration:none;
+} 
+
+QLabel#skinLabel{
+	color: #f7d77a;
+	font: 11pt "Microsoft Sans Serif";
+} 
+
+QPushButton#minimizeButton { background:none; border-image: url(:res/styles/lotro/minimize.png) 0 0 0 0 stretch stretch; }
+QPushButton#closeButton { background:none; border-image: url(:res/styles/lotro/quit.png) 0 0 0 0 stretch stretch; }
+
+QGroupBox#dialogbox{
+	background:rgba(0,0,0,0.4);
+}
+
+QGroupBox#dialog{
+	border-image: url(:res/styles/lotro/start_window_eodoro.png);
+}
+
+QGroupBox QLabel#dialogHeader{
+	padding-left:7px;
+	color: red;
+	font: 12pt "Microsoft Sans Serif";
+	margin-left:5px;
+	margin-right:5px;
+	margin-top:3px;
+	text-align:center;
+}
+
+QGroupBox QLabel#dialogImage{ margin:3px; }
+
+QGroupBox QLabel#dialogInfo{	
+	margin:7px;
+	padding:7px;
+	font: 10pt "TrebushetMS";
+	color:#FFF;
+}
+
+QPushButton#okButton, QPushButton#cancelButton {
+	background:none; 
+	background-color:transparent;
+	border-image: url(:res/styles/lotro/button_dialog.png) 0 0 5 0 stretch stretch;
+}
+
+QLabel#Arkenstone, QLabel#Belegaer, QLabel#Brandywine, QLabel#Crickhollow, QLabel#Evernight, QLabel#Gladden, QLabel#Gwaihir,
+QLabel#Lamannia, QLabel#Landroval, QLabel#Laurelin, QLabel#Sirannon, QLabel#Bullroarer, QLabel#Crickhollow { 
+	border-image: url(:res/styles/vintage/plane2.png);
+	background-color: #555555; /*#8A0808 #173B0B*/
+}
+
+QPushButton#couponButton{
+	font: 15pt "Lucida Sans Unicode";
+	color: #f2ce2e;
+	border-image: none;
+	background:transparent;
+} 
+
+QPushButton#couponButton:hover{ border:none; } 
+
+QLabel#couponTitle{	
+	font: 8pt "Lucida Sans Unicode";
+	color: #FFF;
+}
+
+QLabel#lotropathLabel{ 
+		border:#BFBFBF solid 1px;border-width: 1px;
+	background-color:rgba(19,0,0,0.25); padding-left:2px; 
+}
+
+QLabel#footRed{	color: red;font-weight:bold;}
+QLabel#footYellow{	color: #FFDC20;font-weight:bold;}
+QLabel#loader{ background:transparent;}
+
+QPushButton#enButton{ background:none; border-image: url(:res/styles/vintage/flag_en.png) 0 0 0 0 stretch stretch;} 
+QPushButton#deButton{ background:none; border-image: url(:res/styles/vintage/flag_de.png) 0 0 0 0 stretch stretch;}
+QPushButton#frButton{ background:none; border-image: url(:res/styles/vintage/flag_fr.png) 0 0 0 0 stretch stretch;}
+QPushButton#enButton:disabled, QPushButton#deButton:disabled, QPushButton#frButton:disabled{border-width: 1px; background-color: rgba(255,255,255,0.4);} 
+
+
+QComboBox, QListView::item:selected{
+	color:#FFFFFF;
+	background-color:rgba(0,0,0,0.1);
+	padding:1px;
+	subcontrol-origin: padding;
+}
+
+QComboBox::drop-down{border-width:1px;}
+QComboBox::down-arrow{border-image:url(:res/styles/vintage/downarrow.png);}
+QComboBox QAbstractItemView::item{ padding:5px; }
+
+QPushButton#goCancel{ background-color:transparent; background-image: url(:res/styles/lotro/button_dialog.png) 0 0 0 0 stretch stretch;}
+QPushButton#goLocal{ background:none; border-image: url(:res/styles/lotro/gorur.png) 0 0 0 0 stretch stretch;}
+QPushButton#goOriginal{ background:none;}
+QPushButton#goEnButton{ background:none; border-image: url(:res/styles/lotro/goenr.png) 0 0 0 0 stretch stretch;}
+QPushButton#goDeButton{ background:none; border-image: url(:res/styles/lotro/goder.png) 0 0 0 0 stretch stretch;}
+QPushButton#goFrButton{ background:none; border-image: url(:res/styles/lotro/gofrr.png) 0 0 0 0 stretch stretch;}
+
+QGroupBox#startbox{
+	background:rgba(0,0,0,0.4);
+}
+
+QGroupBox#startframe{
+	background:rgba(0,0,0,0.4);
+	border-image: url(:res/styles/lotro/start_window_eodoro.png) 0 0 0 0 stretch stretch;
+}
+
+QGroupBox#startframe QLabel#goTitle{
+	color: #FFF;
+	font: 11pt "TrebushetMS";
+	margin-top:10px;
+}
+
+QGroupBox#startframe QLabel#goHeader{
+	padding-left:7px;
+	color: #FFF;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+	margin-left:105px;
+	margin-right:5px;
+}
+
+QLabel#goHint{ color:#FFF; }
+
+QPushButton#repairButton{ 
+	background:none;
+	background-color:transparent;
+	border-image: url(:res/styles/lotro/button_long.png) 0 0 0 0 stretch stretch;
+	padding-bottom:2px;
+}

+ 2 - 0
styles/vintage/readme.css

@@ -0,0 +1,2 @@
+.title {color:#F7B754; font-size:14px; font:"Arial"; font-weight:bold;}
+p { margin-top:5px; font-size:12px; font:"Arial";}

+ 230 - 0
styles/vintage/skin.ini

@@ -0,0 +1,230 @@
+[mainWindow]
+width=800
+height=582
+left=0
+top=0
+
+[minimizeButton]
+width=18
+height=18
+left=725
+top=70
+
+[closeButton]
+width=18
+height=18
+left=750
+top=70
+
+[mainButton]
+width=150
+height=28
+left=595
+top=265
+
+[optButton]
+width=150
+height=28
+left=595
+top=308
+
+[newsButton]
+width=150
+height=28
+left=595
+top=351
+
+[helpButton]
+width=150
+height=28
+left=595
+top=394
+
+[aboutButton]
+width=150
+height=28
+left=595
+top=437
+
+[enterButton]
+width=180
+height=48
+left=580
+top=470
+
+[titleLabel]
+width=130
+height=30
+left=243
+top=177
+
+[hintLabel]
+width=290
+height=20
+left=60
+top=475
+
+[exthintLabel]
+width=430
+height=20
+left=60
+top=490
+
+[mainbox]
+width=450
+height=230
+left=80
+top=223
+
+[mainboxImage]
+width=130
+height=255
+left=430
+top=205
+
+[optbox]
+width=350
+height=240
+left=160
+top=220
+
+[optboxImage]
+width=100
+height=240
+left=50
+top=215
+
+[newsbox]
+width=430
+height=230
+left=40
+top=230
+
+[newsboxImage]
+width=100
+height=245
+left=445
+top=215
+
+[helpbox]
+width=400
+height=250
+left=140
+top=220
+
+[helpboxImage]
+width=120
+height=230
+left=30
+top=220
+
+[aboutbox]
+width=400
+height=240
+left=50
+top=220
+
+[aboutboxImage]
+width=75
+height=235
+left=460
+top=220
+
+[dialogHeader]
+width=400
+height=28
+left=0
+top=0
+
+[okButton]
+width=100
+height=35
+left=0
+top=0
+
+[cancelButton]
+width=100
+height=35
+left=0
+top=0
+
+[serversbox]
+width=800
+height=65
+left=21
+top=514
+
+[couponButton]
+width=150
+height=48
+left=593
+top=150
+
+[couponTitle]
+width=150
+height=18
+left=593
+top=150
+
+[footRed]
+width=550
+height=18
+left=140
+top=543
+
+[footYellow]
+width=570
+height=18
+left=123
+top=543
+
+[loader]
+width=57
+height=57
+left=480
+top=465
+
+[labelVersion]
+width=150
+height=24
+left=475
+top=146
+shadow=1
+shcolor=#111
+
+[goTitle]
+width=291
+height=20
+left=20
+top=125
+shadow=1
+shcolor=#999
+shblur=1
+shx=1
+shy=1
+
+[goOriginal]
+width=91
+height=91
+left=20
+top=31
+text=del
+
+[goLocal]
+width=91
+height=91
+left=120
+top=31
+text=del
+
+[goCancel]
+width=91
+height=91
+left=220
+top=31
+text=del
+
+[htmlColors]
+a=#F7B754
+h3=#F7B754
+p=#FFF

+ 248 - 0
styles/vintage/style.css

@@ -0,0 +1,248 @@
+QMainWindow {
+	background-color: transparent;
+	background-image: url(:/res/styles/vintage/bg.png);
+	min-width:800px;
+	min-height:582px;
+	
+}
+
+QLabel, QCheckBox {
+	color: #FFF;
+	font: 8pt "Arial";	
+}
+
+QGroupBox{
+	border:none;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+}
+
+QGroupBox::title {
+	color: #F7B754;	
+}
+
+QTextBrowser {
+	border:none;
+}
+
+
+QPushButton {
+	border-image: url(:/res/styles/vintage/button2.png) 0 0 0 0 stretch stretch;
+	color: #EFE1AF;/*#F8E600*/
+	font: 12pt "Segoe Print";
+	padding:5px;
+}
+
+QPushButton:hover { color: #F9EA20; }
+QPushButton:pressed { background-color: transparent; }
+QPushButton:hover:!pressed{ border: 1px solid red; }
+ 
+QPushButton#enterButton { border-image: url(:/res/styles/vintage/enter.png) 0 0 0 0 stretch stretch; }  
+QPushButton#enterButton:hover { border-image: url(:/res/styles/vintage/enter_hover.png) 0 0 0 0 stretch stretch; } 
+ 
+QLabel#titleLabel {
+	color: #ECE7C4; /*#FBB540*/
+	font: 14pt "Segoe Script";
+	font-weight:bold;	 
+}
+ 
+ 
+QLabel#hintLabel{
+	color: #FBB540;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+} 
+ 
+QLabel#hintLabel, QLabel#news1Title, QLabel#news2Title, QLabel#news3Title , QLabel#news4Title{
+	color: #F7B754;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+	text-decoration:none;
+}
+
+QLabel#news1Image, QLabel#news2Image, QLabel#news3Image , QLabel#news4Image{
+	border-image: url(:/res/styles/vintage/plane.png);
+	padding:3px;
+}
+
+ QLabel#exthintLabel{
+	color: rgb(255, 255, 255);
+	font: 8pt "Arial";	 
+ }  
+ 
+ QLabel#textsTitle, QLabel#imagesTitle, QLabel#soundsTitle, QLabel#loadscreensTitle, QLabel#fontsTitle, QLabel#videosTitle{
+	color: #F7B754;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+ }  
+ 
+QLabel#textsStatus, QLabel#imagesStatus, QLabel#soundsStatus, QLabel#loadscreensStatus, QLabel#fontsStatus, QLabel#videosStatus{
+	color: #FFF;
+	font: 10pt "TrebushetMS";
+}   
+ 
+QPushButton#lotropathButton{
+	font: 10pt "MS Shell Dlg 2";
+	color: rgb(255, 255, 255);
+	border-image: url(:/res/styles/vintage/folder.png);
+	
+} 
+
+QLabel#mainboxImage{ border-image: url(:/res/styles/vintage/gandalf.png); } 
+QLabel#optboxImage{ border-image: url(:/res/styles/vintage/boromir.png); }  
+QLabel#newsboxImage{ border-image: url(:/res/styles/vintage/saruman.png); }
+QLabel#helpboxImage{ border-image: url(:/res/styles/vintage/elrond.png); }  
+QLabel#aboutboxImage{ border-image: url(:/res/styles/vintage/eowin.png); }
+  
+
+QTextBrowser {
+	background:transparent;
+	color:#FFF;
+	font: 10pt "TrebushetMS";	
+}
+
+ QLabel#programmers, QLabel#designers, QLabel#translators, QLabel#helpers, QLabel#moderators{
+	color: #F7B754;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+ } 
+
+QLabel#skinLabel{
+	color: #F7B754;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+} 
+
+QPushButton#minimizeButton { border-image: url(:/res/styles/vintage/minimize.png) 0 0 0 0 stretch stretch; }
+QPushButton#closeButton { border-image: url(:/res/styles/vintage/close.png) 0 0 0 0 stretch stretch; }
+
+/*QMessageBox {
+	background:transparent;
+	border-image: url(:/res/styles/vintage/message.png);
+	color: #F7B754;
+	font: 11pt "TrebushetMS";
+	
+	
+}
+
+QMessageBox QLabel {
+    color: #FFF;font: 9pt "TrebushetMS";
+	background-color:rgba(0,0,0,0.4);
+	padding:7px;
+	margin-top:30px;
+}
+
+
+QMessageBox QPushButton {
+	border-image: url(:/res/styles/vintage/msgbutton.png);
+	min-width:50px;
+	max-height:24px;
+}*/
+
+QGroupBox#dialogbox{
+	background:rgba(0,0,0,0.4);
+}
+
+QGroupBox#dialog{
+	border-image: url(:/res/styles/vintage/start_window.png);
+}
+
+QGroupBox QLabel#dialogHeader{
+	border-image: url(:/res/styles/vintage/window_header_brown.png);
+	padding-left:7px;
+	color: #F2DA84;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+	margin-left:5px;
+	margin-right:5px;
+	margin-top:3px;
+}
+
+QGroupBox QLabel#dialogImage{ margin:3px; }
+
+QGroupBox QLabel#dialogInfo{	
+	margin:7px;
+	padding:7px;
+	font: 10pt "TrebushetMS";
+	color:#333;
+	/*background-color:rgba(0,0,0,0.3)*/
+}
+
+QPushButton#okButton, QPushButton#cancelButton { margin-top:7px; }
+
+QLabel#Arkenstone, QLabel#Belegaer, QLabel#Brandywine, QLabel#Crickhollow, QLabel#Evernight, QLabel#Gladden, QLabel#Gwaihir,
+QLabel#Lamannia, QLabel#Landroval, QLabel#Laurelin, QLabel#Sirannon, QLabel#Bullroarer, QLabel#Crickhollow { 
+	border-image: url(:/res/styles/vintage/plane2.png);
+	background-color: #555555; /*#8A0808 #173B0B*/
+}
+
+QPushButton#couponButton{
+	font: 14pt "MS Shell Dlg 2";
+	color: #FFFFE6;
+	border-image: none;
+	background:transparent;
+	font-weight:bold;
+	
+} 
+
+QPushButton#couponButton:hover{ border:none; } 
+
+QLabel#couponTitle{	color: #FFFFE6;font-weight:bold;}
+QLabel#lotropathLabel{ border:#BFBFBF solid 1px;border-width: 1px; background-color:rgba(19,0,0,0.25); padding-left:2px; }
+QLabel#footRed{	color: red;font-weight:bold;}
+QLabel#footYellow{	color: #FFDC20;font-weight:bold;}
+QLabel#loader{ background:transparent;}
+
+QPushButton#enButton{ border-image: url(:/res/styles/vintage/flag_en.png) 0 0 0 0 stretch stretch;} 
+QPushButton#deButton{ border-image: url(:/res/styles/vintage/flag_de.png) 0 0 0 0 stretch stretch;}
+QPushButton#frButton{ border-image: url(:/res/styles/vintage/flag_fr.png) 0 0 0 0 stretch stretch;}
+QPushButton#enButton:disabled, QPushButton#deButton:disabled, QPushButton#frButton:disabled{border-width: 1px; background-color: rgba(255,255,255,0.4);} 
+
+
+QComboBox, QListView::item:selected{
+	color:#FFFFFF;
+	background-color:rgba(0,0,0,0.1);
+	padding:1px;
+	subcontrol-origin: padding;
+}
+
+QComboBox::drop-down{border-width:1px;}
+QComboBox::down-arrow{border-image:url(:/res/styles/vintage/downarrow.png);}
+QComboBox QAbstractItemView::item{ padding:5px; }
+
+QPushButton#goCancel{ border-image: url(:/res/styles/vintage/gocancel.png) 0 0 0 0 stretch stretch;}
+QPushButton#goLocal{ border-image: url(:/res/styles/vintage/gorur.png) 0 0 0 0 stretch stretch;}
+QPushButton#goEnButton{ border-image: url(:/res/styles/vintage/goenr.png) 0 0 0 0 stretch stretch;}
+QPushButton#goDeButton{ border-image: url(:/res/styles/vintage/goder.png) 0 0 0 0 stretch stretch;}
+QPushButton#goFrButton{ border-image: url(:/res/styles/vintage/gofrr.png) 0 0 0 0 stretch stretch;}
+
+QGroupBox#startbox{
+	background:rgba(0,0,0,0.4);
+}
+
+QGroupBox#startframe{
+	background:rgba(0,0,0,0.4);
+	border-image: url(:/res/styles/vintage/start_window.png) 0 0 0 0 stretch stretch;
+}
+
+QGroupBox#startframe QLabel#goTitle{
+	/*border-image: url(:/res/styles/vintage/header.png);*/
+	color: #4B2708;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+}
+
+QGroupBox#startframe QLabel#goHeader{
+	border-image: url(:/res/styles/vintage/window_header_brown.png) 0 0 0 0 stretch stretch;
+	padding-left:7px;
+	color: #F2DA84;
+	font: 11pt "TrebushetMS";
+	font-weight:bold;
+	margin-left:5px;
+	margin-right:5px;
+	margin-top:3px;
+}
+
+QLabel#goHint{ color:#4B2708; }
+
+