再次放出kde3.3.2的更新包--未缩水版
按照kanker的意思,重新打了kde3.3.2的包。并且加了下划线的patch有意升级者从 www.magiclinux.org/people/tingxx/kde3.3.2下载
(这次是在rc1的基础上打包的) 辛苦你啦,呵呵,刚又根据IE的显示将下划线下移了一个像素。补丁如下,你有时间便重新编译一下kdelibs吧:-)
--- kdelibs-3.3.1/khtml/rendering/font.cpp 2004-12-14 02:12:49.000000000 -0500
+++ kdelibs-3.3.1-new/khtml/rendering/font.cpp 2004-12-14 02:02:24.000000000 -0500
@@ -400,8 +400,8 @@
int thickness = fm.height() > 20 ? fm.lineWidth() : 1;
QBrush brush = pt->pen().color();
if (deco & UNDERLINE) {
- int underlineOffset = ( fm.height() + baseline ) / 2;
- if (underlineOffset <= baseline) underlineOffset = baseline+1;
+ int underlineOffset = ( fm.height() + baseline ) / 2 + 2 ;
+ if (underlineOffset <= baseline+2) underlineOffset = baseline+3;
pt->fillRect(_tx, _ty + underlineOffset, width + 1, thickness, brush );
}
--- kdelibs-3.3.1/khtml/rendering/render_line.cpp 2004-12-14 02:12:49.660125712 -0500
+++ kdelibs-3.3.1-new/khtml/rendering/render_line.cpp 2004-12-13 23:07:56.000000000 -0500
@@ -604,8 +604,8 @@
if (!parent())
object()->getTextDecorationColors(deco, underline, overline, linethrough);
if (deco & UNDERLINE) {
- int underlineOffset = ( fm.height() + m_baseline ) / 2;
- if (underlineOffset <= m_baseline) underlineOffset = m_baseline+1;
+ int underlineOffset = ( fm.height() + m_baseline ) / 2 + 2 ;
+ if (underlineOffset <= m_baseline+2) underlineOffset = m_baseline+3;
pI.p->fillRect(_tx, _ty + underlineOffset, w, thickness, underline );
}
效果如下:
http://www.magiclinux.org/people/kanker/tools/pictures/khtml-underline.png 谢谢!刚刚安装上ML1.2RC1,希望KDE的质感不断增强。 好的,今晚就开始编绎 :roll: 要安装的注意了,rc1中没有doxygen,所以安装的时候一定要先装上它(在上面的目录就有,不要忘了下载就行) :wink: 已经在用了,感觉不错。 请问你的贴图里是 aag 还是aa?这个像素移得不太合适吧。 你看看ie里的显示,也是这样的,那个是aaq kdelib重新打包完成,上传覆盖了原来的包。已经安装了的可以重新下载kdelibs包。重新安装 :idea:
今晚还重新打包了Krusader,升级到了1.51,我觉得这个文件管理器非常不错 :mrgreen: 效果如下:
http://www.magiclinux.org/people/kanker/tools/pictures/khtml-underline.png
改过了一个像素吧,你去对一下。 辛苦你啦,呵呵,刚又根据IE的显示将下划线下移了一个像素。补丁如下,你有时间便重新编译一下kdelibs吧:-)
--- kdelibs-3.3.1/khtml/rendering/font.cpp 2004-12-14 02:12:49.000000000 -0500
+++ kdelibs-3.3.1-new/khtml/rendering/font.cpp 2004-12-14 02:02:24.000000000 -0500
@@ -400,8 +400,8 @@
int thickness = fm.height() > 20 ? fm.lineWidth() : 1;
QBrush brush = pt->pen().color();
if (deco & UNDERLINE) {
- int underlineOffset = ( fm.height() + baseline ) / 2;
- if (underlineOffset <= baseline) underlineOffset = baseline+1;
+ int underlineOffset = ( fm.height() + baseline ) / 2 + 2 ;
+ if (underlineOffset <= baseline+2) underlineOffset = baseline+3;
pt->fillRect(_tx, _ty + underlineOffset, width + 1, thickness, brush );
}
--- kdelibs-3.3.1/khtml/rendering/render_line.cpp 2004-12-14 02:12:49.660125712 -0500
+++ kdelibs-3.3.1-new/khtml/rendering/render_line.cpp 2004-12-13 23:07:56.000000000 -0500
@@ -604,8 +604,8 @@
if (!parent())
object()->getTextDecorationColors(deco, underline, overline, linethrough);
if (deco & UNDERLINE) {
- int underlineOffset = ( fm.height() + m_baseline ) / 2;
- if (underlineOffset <= m_baseline) underlineOffset = m_baseline+1;
+ int underlineOffset = ( fm.height() + m_baseline ) / 2 + 2 ;
+ if (underlineOffset <= m_baseline+2) underlineOffset = m_baseline+3;
pI.p->fillRect(_tx, _ty + underlineOffset, w, thickness, underline );
}
改大了,有点过,应该减回1。 :roll: 茫然 看看效果比较
下移一个像素:
http://www.magiclinux.org/people/kanker/tools/pictures/konqueror_underline.png
下移两个像素:
http://www.magiclinux.org/people/kanker/tools/pictures/khtml-underline1.png
IE的效果:
http://www.magiclinux.org/people/kanker/tools/pictures/ie_underline.jpg 下划线都重在一起了 :mrgreen:
页:
[1]