mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
opt:add new default style.
based on original default style, remove yellow background. the original default style is renamed to classic style.
This commit is contained in:
parent
c65a7f41b9
commit
f5882816c9
2945
article-style-st-classic.css
Normal file
2945
article-style-st-classic.css
Normal file
File diff suppressed because it is too large
Load diff
|
@ -6,7 +6,6 @@ html {
|
|||
|
||||
body
|
||||
{
|
||||
background: #fefdeb;
|
||||
font-family: Tahoma, Verdana, "Lucida Sans Unicode", sans-serif;
|
||||
height: 100%;
|
||||
}
|
||||
|
@ -66,7 +65,6 @@ pre
|
|||
padding-top: 1px;
|
||||
margin-top: -8px;
|
||||
margin-bottom: 8px;
|
||||
background: #fefdeb;
|
||||
/*fix for invalid blg*/
|
||||
font-style:normal;
|
||||
content-visibility: auto;
|
||||
|
|
|
@ -4218,7 +4218,12 @@ from Stardict, Babylon and GLS dictionaries</source>
|
|||
<translation>分钟</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.cc" line="143"/>
|
||||
<location filename="../preferences.cc" line="155"/>
|
||||
<source>Classic</source>
|
||||
<translation>经典</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../preferences.cc" line="156"/>
|
||||
<source>Modern</source>
|
||||
<translation>现代</translation>
|
||||
</message>
|
||||
|
|
|
@ -152,6 +152,7 @@ Preferences::Preferences( QWidget * parent, Config::Class & cfg_ ):
|
|||
}
|
||||
|
||||
ui.displayStyle->addItem( QIcon( ":/icons/programicon_old.png" ), tr( "Default" ), QString() );
|
||||
ui.displayStyle->addItem( QIcon( ":/icons/programicon.png" ), tr( "Classic" ), QString( "classic" ) );
|
||||
ui.displayStyle->addItem( QIcon( ":/icons/programicon.png" ), tr( "Modern" ), QString( "modern" ) );
|
||||
ui.displayStyle->addItem( QIcon( ":/icons/icon32_dsl.png" ), tr( "Lingvo" ), QString( "lingvo" ) );
|
||||
ui.displayStyle->addItem( QIcon( ":/icons/icon32_bgl.png" ), tr( "Babylon" ), QString( "babylon" ) );
|
||||
|
|
165
qt-style-st-classic.css
Normal file
165
qt-style-st-classic.css
Normal file
|
@ -0,0 +1,165 @@
|
|||
MainWindow #translateLine, ScanPopup #translateLine, MainWindow #wordList, MainWindow #dictsPane #dictsList, MainWindow #historyPane #historyList, MainWindow #favoritesPane #favoritesTree
|
||||
{
|
||||
background: #fefdeb;
|
||||
color: black;
|
||||
}
|
||||
|
||||
MainWindow #translateLine[noResults="true"],
|
||||
ScanPopup #translateLine[noResults="true"]
|
||||
{
|
||||
background: #febb7d;
|
||||
}
|
||||
|
||||
#navToolbar #menuButton::menu-indicator {
|
||||
image: none;
|
||||
}
|
||||
|
||||
#navToolbar #translateLine
|
||||
{
|
||||
border: 1px solid gray;
|
||||
border-radius: 3px;
|
||||
padding: 1px 3px 2px 3px;
|
||||
border-top-left-radius: 0px;
|
||||
border-bottom-left-radius: 0px;
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
#navToolbar GroupComboBox
|
||||
{
|
||||
margin-right: 0px;
|
||||
border: 1px solid gray;
|
||||
border-right: 1px transparent;
|
||||
border-radius: 3px;
|
||||
border-top-right-radius: 0px;
|
||||
border-bottom-right-radius: 0px;
|
||||
padding: 2px 4px 2px 4px;
|
||||
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
||||
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
|
||||
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
|
||||
}
|
||||
|
||||
#navToolbar GroupComboBox:on {
|
||||
padding: 3px 3px 1px 5px;
|
||||
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
||||
stop: 0 #D3D3D3, stop: 0.4 #D8D8D8,
|
||||
stop: 0.5 #DDDDDD, stop: 1.0 #E1E1E1);
|
||||
}
|
||||
|
||||
#navToolbar GroupComboBox::drop-down {
|
||||
subcontrol-origin: padding;
|
||||
subcontrol-position: top right;
|
||||
width: 15px;
|
||||
border-left: 1px solid darkgray;
|
||||
border-right: 1px transparent;
|
||||
}
|
||||
|
||||
#navToolbar GroupComboBox::down-arrow {
|
||||
image: url(:/icons/1downarrow.svg);
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
#navToolbar GroupComboBox::down-arrow:on { /* shift the arrow when popup is open */
|
||||
top: 1px;
|
||||
left: 1px;
|
||||
}
|
||||
|
||||
QTabBar::close-button {
|
||||
image: url(:/icons/closetab.svg)
|
||||
}
|
||||
QTabBar::close-button:hover {
|
||||
image: url(:/icons/closetab-hover.png)
|
||||
}
|
||||
|
||||
|
||||
ArticleView #searchText[noResults="true"]
|
||||
{
|
||||
background: #febb7d;
|
||||
}
|
||||
|
||||
MainStatusBar #text
|
||||
{
|
||||
border-top-right-radius: 3px;
|
||||
border-top: 1px solid palette(dark);
|
||||
border-right: 1px solid palette(dark);
|
||||
background: palette(window);
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
MainStatusBar #icon
|
||||
{
|
||||
border-top: 1px solid palette(dark);
|
||||
background: palette(window);
|
||||
padding: 2px;
|
||||
padding-left: 4px;
|
||||
padding-right: 0px;
|
||||
}
|
||||
|
||||
ScanPopup #translateLine
|
||||
{
|
||||
margin: 0px;
|
||||
padding: 1px 3px 1px 3px;
|
||||
border: 1px solid gray;
|
||||
border-radius: 3px;
|
||||
border-top-left-radius: 0px;
|
||||
border-bottom-left-radius: 0px;
|
||||
}
|
||||
|
||||
ScanPopup GroupComboBox
|
||||
{
|
||||
margin: 0px 0px 0px 1px;
|
||||
padding: 1px 4px 1px 4px;
|
||||
border: 1px solid gray;
|
||||
border-right: 1px transparent;
|
||||
border-radius: 3px;
|
||||
border-top-right-radius: 0px;
|
||||
border-bottom-right-radius: 0px;
|
||||
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
||||
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
|
||||
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
|
||||
}
|
||||
|
||||
ScanPopup GroupComboBox:on {
|
||||
padding: 3px 3px 1px 5px;
|
||||
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
||||
stop: 0 #D3D3D3, stop: 0.4 #D8D8D8,
|
||||
stop: 0.5 #DDDDDD, stop: 1.0 #E1E1E1);
|
||||
}
|
||||
|
||||
ScanPopup GroupComboBox::drop-down {
|
||||
subcontrol-origin: padding;
|
||||
subcontrol-position: top right;
|
||||
width: 15px;
|
||||
border-left: 1px solid darkgray;
|
||||
border-right: 1px transparent;
|
||||
}
|
||||
|
||||
ScanPopup GroupComboBox::down-arrow {
|
||||
image: url(:/icons/1downarrow.svg);
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
ScanPopup GroupComboBox::down-arrow:on { /* shift the arrow when popup is open */
|
||||
top: 1px;
|
||||
left: 1px;
|
||||
}
|
||||
|
||||
.ScanPopup #outerFrame
|
||||
{
|
||||
border: 1px solid palette(dark);
|
||||
}
|
||||
|
||||
.ScanPopup MainStatusBar #text
|
||||
{
|
||||
border-bottom: 1px solid palette(dark);
|
||||
}
|
||||
|
||||
.ScanPopup MainStatusBar[hasImage="false"] #text
|
||||
{
|
||||
border-left: 1px solid palette(dark);
|
||||
}
|
||||
|
||||
.ScanPopup MainStatusBar #icon
|
||||
{
|
||||
border-left: 1px solid palette(dark);
|
||||
border-bottom: 1px solid palette(dark);
|
||||
}
|
|
@ -1,13 +1,11 @@
|
|||
MainWindow #translateLine, ScanPopup #translateLine, MainWindow #wordList, MainWindow #dictsPane #dictsList, MainWindow #historyPane #historyList, MainWindow #favoritesPane #favoritesTree
|
||||
{
|
||||
background: #fefdeb;
|
||||
color: black;
|
||||
}
|
||||
|
||||
MainWindow #translateLine[noResults="true"],
|
||||
ScanPopup #translateLine[noResults="true"]
|
||||
{
|
||||
background: #febb7d;
|
||||
|
||||
}
|
||||
|
||||
#navToolbar #menuButton::menu-indicator {
|
||||
|
|
|
@ -102,5 +102,7 @@
|
|||
<file>icons/1downarrow.svg</file>
|
||||
<file>icons/wizard-selected.svg</file>
|
||||
<file>icons/mdict-bg.png</file>
|
||||
<file>article-style-st-classic.css</file>
|
||||
<file>qt-style-st-classic.css</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Reference in a new issue