This page is READ-ONLY. It is generated from the old site.
All timestamps are relative to 2013 (when this page is generated).
If you are looking for TeX support, please go to VietTUG.org

Problem #358

xvnb: biểu tượng trên tray quá lớn

Added by about 4 years ago. Updated about 4 years ago.

Status: Closed Start Date: 25-03-2009
Priority: Normal Due date: 31-03-2009
Assigned to: - % Done:

100%

Category: Desktop Applications
Target version: 2009 Estimated time: 3.00 hours
Resolution: Fixed
Votes: 0/0

Description

Biểu tượng của xvnkb trên system tray quá lớn, khi dùng với openbox + fbpanel. Cần điều chỉnh font, cỡ cho thích hợp, vừa mắt.

History

Updated by about 4 years ago

  • Status changed from New to Closed
  • Assigned to set to 3
  • % Done changed from 0 to 100
  • Resolution set to Fixed

Xem kết quả hack sau đây. Kết quả tạm tạm, chữ V không cân đối lắm, còn biểu tượng xvnkb đã vừa vẹn trên system tray.

diff -r xvnkb-0.2.9/data.h xvnkb-0.2.9-hacked/data.h
47,48c47,48
< #define VK_FONT_12                    "helvetica:size=12:style=bold" 
< #define VK_FONT_14                    "helvetica:size=14:style=bold" 
---
> #define VK_FONT_12                    "helvetica:size=10:style=bold" 
> #define VK_FONT_14                    "helvetica:size=10:style=bold" 
50,51c50,51
< #define VK_FONT_12                    "*helvetica-bold-r*120*" 
< #define VK_FONT_14                    "*helvetica-bold-r*140*" 
---
> #define VK_FONT_12                    "*helvetica-bold-r*10*" 
> #define VK_FONT_14                    "*helvetica-bold-r*10*" 
diff -r xvnkb-0.2.9/mainwin.c xvnkb-0.2.9-hacked/mainwin.c
92,93c92,93
<       vk_icon_width = fi.width + 16;
<       vk_icon_height = 16 + vk_text_height;
---
>       vk_icon_width = fi.width + 4;
>       vk_icon_height = 4 + vk_text_height;
96c96
<       vk_icon_height = 16 + vk_text_height;
---
>       vk_icon_height = 4 + vk_text_height;
diff -r xvnkb-0.2.9/tools/data.h xvnkb-0.2.9-hacked/tools/data.h
47,48c47,48
< #define VK_FONT_12                    "helvetica:size=12:style=bold" 
< #define VK_FONT_14                    "helvetica:size=14:style=bold" 
---
> #define VK_FONT_12                    "helvetica:size=10:style=bold" 
> #define VK_FONT_14                    "helvetica:size=10:style=bold" 
50,51c50,51
< #define VK_FONT_12                    "*helvetica-bold-r*120*" 
< #define VK_FONT_14                    "*helvetica-bold-r*140*" 
---
> #define VK_FONT_12                    "*helvetica-bold-r*10*" 
> #define VK_FONT_14                    "*helvetica-bold-r*10*"