打印

fvwm 的FvwmTasBar 的 style 问题

fvwm 的FvwmTasBar 的 style 问题

我给它的 style 是这样的

Style "FvwmTaskBar" NoTitle, NoHandles, HandleWidth 4, BorderWidth 4, Sticky, StaysOnTop, WindowListSkip, CirculateSkip

显示出来的 边框 感觉有立体感  怎么改能让他没立体感  

我想弄得扁扁的
附件: 您所在的用户组无法下载或查看附件

TOP

对了  还有一个图标 问题
怎么才能把 这个图标 移到左边  或者不要?
附件: 您所在的用户组无法下载或查看附件

TOP

1.NoInset 试试
2.NoIconTitle 试试
醉卧沙场君莫笑 古来征战几人回

TOP

Style "FvwmTaskBar" NoInset,NoTitle,NoHandles, HandleWidth 4, BorderWidth 4, Sticky, StaysOnTop, WindowListSkip, CirculateSkip

Style * NoIconTitle
吗?
好象都不行诶

还有个问题阿   怎么让新出来的窗口 获得鼠标的焦点?
谢谢

TOP

NoInset不是那么用的
NoInset是BorderStyle的选项,而BorderStyle用在AddToDecor中,然后再利用Style的选项UseDecor把定义好的Decor应用到某些窗口上.
例如:
AddToDecor DefaultDecor
+ BorderStyle  -- HiddenHandles NoInset

Style * UseDecor DefaultDecor


你的那个图标我不知道你是怎么搞上去的

焦点随鼠标进入和离开窗口而改变是默认的情况,使用下面
Style * ClickToFocus
可以改为"点击获得焦点"的策略,同时新窗口会自动获得焦点
也可以
Style * FPGrabFocus
不改变策略的情况下使新窗口获得焦点
醉卧沙场君莫笑 古来征战几人回

TOP

高手啊  
我把fvwm 文件贴上来让你看下吧 呵呵 看看那图标怎么回事
里面有好多 东西都看不懂  比如开头的一大堆
这个东西也是公社的一位朋友给的  在此谢过
我稍微做了一点点改动

EdgeResistance 1000 20
IgnoreModifiers L25
SnapAttraction 3
EdgeScroll 0 0
EdgeThickness 1
ClickTime 150
MoveThreshold 3
OpaqueMoveSize 10
HideGeometryWindow Move|Resize
BugOpts FlickeringMoveWorkaround Off
SnapAttraction 0 SameType
SnapGrid 1 1

DestroyFunc FuncFvwmDecorBackground
AddToFunc   FuncFvwmDecorBackground
BorderStyle        Inactive -- HiddenHandles NoInset
BorderStyle        Active -- HiddenHandles NoInset
TitleStyle        ActiveUp (solid #36648B -- Flat)
TitleStyle        ActiveDown (solid #36648B -- Flat)
TitleStyle        Inactive (solid grey51 -- Flat)
TitleStyle        Height 30 LeftJustified
ButtonStyle        4        MiniIcon (-- flat)
ButtonStyle        all        -- UseTitleStyle Flat
+ I Module FvwmTaskBar
#+ I Exec exec fvwm-root -r ~/.fvwm/fvwm.png
+ I Exec exec xloadimage -onroot -fullscreen /etc/bootsplash/themes/Linux/images/bootsplash-1024x768.jpg

FuncFvwmDecorBackground
+ I ButtonStyle All Simple -- UseTitleStyle
Style "*" Button 1, Button 2, Button 3, Button 5, Button 4,Button 6,GrabFocusOff
#Style "*" Button 1, Button 2, Button 3, Button 4,GrabFocusOff
Style "*" FvwmButtons

+ I FuncFvwmDecorBackground
AddButtonStyle  2 Inactive Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
AddButtonStyle  1 Inactive Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat
AddButtonStyle  4 Inactive Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
AddButtonStyle  6 Inactive Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat

AddButtonStyle  2 active Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
AddButtonStyle  1 active Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat
AddButtonStyle  4 active Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
AddButtonStyle  6 active Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat

ButtonStyle 1 - Clear
ButtonStyle 2 - Clear MWMDecorMenu
ButtonStyle 6 - Clear MWMDecorMin
ButtonStyle 4 - Clear MWMDecorMax

TitleStyle  Height 21
Style * Font "StringEncoding=gbk-0:Shadow=0 0 SEft:simsun:size=10:encoding=iso10646-1"
Style "*"   BorderWidth 3, HandleWidth 3
AddToFunc   FuncFvwmReloadDecor
+ I BorderStyle Simple -- NoInset
+ I TitleStyle  -- Flat
+ I ButtonStyle All -- Flat
FuncFvwmReloadDecor

Colorset 0 fg #ffffff, fgsh #000000, bg #f6f6f6, sh #6e90b3, hi #91b6db, Translucent #283e5e 80
Colorset 1 fg #000000, fgsh #b5b7b8, bg #ffffff, hi #ffffff, sh #9a9a9a, Translucent #dce0e7 70
Colorset 3 fg #9aafbf, bg #000000, fgsh #000000, NoShape, RootTransparent, Tint #283e5e 70
Colorset 4 fg #ffffff, bg #000000, fgsh #000000, Noshape, RootTransparent, Tint #101f36 70

MenuStyle * Hilight3DOff, HilightBack #424164, ActiveFore white
MenuStyle * Foreground grey90
MenuStyle * Background #1c5572
MenuStyle * Font "StringEncoding=gbk-0:Shadow=0 0 SEft:simsun:size=10:encoding=iso10646-1"
#MenuStyle * MenuColorset 0, HilightBack, ActiveColorset 1
MenuStyle * BorderWidth 1, TitleUnderlines1, SeparatorsLong, TrianglesSolid
MenuStyle * ItemFormat "%.2|%.5i%.5l%.5i%2.3>%2|"
MenuStyle * AutomaticHotKeys
MenuStyle * MenuFace VGradient 128 1 #2c80A0 1 #1c5572
ColormapFocus FollowsFocus
style * Colorset 3, HilightColorset 4
Style * Font "StringEncoding=gbk-0:Shadow=0 0 SEft:simsun:size=10:encoding=iso10646-1"
Style * IconBox 50 1050 1050 +15, SloppyFocus, MouseFocusClickRaises
Style * SmartPlacement, WindowShadeSteps 0, ResizeOutLine
Style * Button 1, Button 2, Button 4, Button 6, GrabFocusOff
Style * BorderWidth 1, HandleWidth 2
Style * NoIcon
Style * IndexedIconName
Style * MinOverlapPercentPlacement
Style * MinOverlapPercentPlacementPenalties 2 5 1 2 0.5 50
Style *           ResizeOutLine
Style xcalc       ClickToFocus
#Style * ClickToFocus
Style Gkrellm2    Sticky, WindowListSkip, StaysOnBottom, NeverFocus
#Style gaim        NoTitle, EwmhMiniIconOverride
Style xmms        NoTitle
Style  beep-media-player NoTitle
Style  MPlayer NoTitle
#Style mlterm      NoTitle
Style xine        NoTitle
Style xdaliclock NoTitle,NoHandles, Sticky,WindowListSkip
Style FvwmButtons  NoTitle,WindowListSkip,BorderWidth 4, HandleWidth 4,Sticky,\
StaysOnTop,CirculateSkip
Style FvwmTaskBar NoTitle,WindowListSkip,BorderWidth 4, HandleWidth 4,Sticky,\
StaysOnTop,CirculateSkip
Style aterm NoTitle
Style FvwmScript-Quit
Style __messages_root Sticky, WindowListSkip, NoTitle
Style __messages_root BorderWidth 0, StaysOnBottom, NoHandles, NeverFocus
Style grip        EWMHMiniIconOverride,
Style * DecorateTransient
DestroyModuleConfig FvwmEvent: *
DestroyModuleConfig FvwmProxy: *
*FvwmProxy: Font "StringEncoding=gbk-0:Shadow=0 0 SEft:simsun:size=10:encoding=iso10646-1"
*FvwmProxy: ProxyMove true

Key Escape  A   M   SendToModule FvwmProxy ShowToggle
Mouse 3     W       M   Resize
Mouse 3     R       A   Menu MenuFvwmRoot
Mouse 1     R       A   WindowList
Mouse 1     1       A   Menu MenuFvwmWindowOps Nop
#Mouse 0     1       A   DestroyOnHold
Mouse 1                2                A        close
Mouse 1     6       A   Iconify
Mouse 1     4       A   Maximize 100 -30p
Mouse 1     FS      A   Resize-or-Raise
Mouse 2     W       C   Resize-or-Raise
Mouse 1     W       M   Move-or-Raise
Mouse 1     T       A   Move-or-Raise
Mouse 1     I       A   Move-or-Iconify
Mouse 3     TSIF    A   RaiseLower
Mouse 2     I       A   Iconify

Key  x A        C   Exec exec xterm
Key  r A                C        Exec exec rxvt
Key F2 A        M   Exec exec grun
Key F3 A        M   Module FvwmConsole -terminal rxvt
Key F4 A        M   Pick Close
Key X  A        4   Pick Destroy
Key L  A        4   Exec exec xscreensaver-command --lock
Key I  A        4   All (AcceptsFocus CurrentPage !Iconic !Shaded) Thumbnail
#Key X  A        CM  Exec exec xmag
Key F4 A        CM  Quit
Key R  A        CM  Restart

key Left W CM Move w-5 w+0
key right W CM Move w+5 w-0
key Up W CM Move w+0 w-5
key Down W CM Move w-0 w+5

AddToFunc StartFunction
+ I Module FvwmCommandS
+ I Module FvwmEvent
+ I Module FvwmProxy
+ I Module FvwmAuto FvwmAutohide -menter FuncAutoEnter

DestroyModuleConfig FvwmIdent: *
*FvwmIdent: Back Black
*FvwmIdent: Fore #f1f1f1
*FvwmIdent: Font "StringEncoding=gbk-0:Shadow=0 0 SEft:simsun:size=10:encoding=iso10646-1"


Read menu.fvwm

DestroyFunc FuncFvwmFocusPolicyChange
AddToFunc FuncFvwmFocusPolicyChange
+ I Style * $0
+ I Recapture

DestroyFunc DestroyOnHold
AddToFunc DestroyOnHold I Raise
+ C Schedule 50 Close
+ H Destroy

AddToFunc StartFunction I FvwmEvent FvwmEvent-NewWindow

AddToFunc Move-or-Raise I Raise
+ M Move
+ D Maximize 100 -28p
#+ D WindowShade Toggle

AddToFunc Maximize-Func M Maximize 0 100
+ C Maximize       0 80
+ D Maximize       100 -30p

AddToFunc Move-or-Iconify I Raise
+ M Move
+ D Iconify

AddToFunc Resize-or-Raise I Raise
+ M Resize
+ D Lower

#Style FvwmTaskBar HandleWidth 4, BorderWidth 4
Style "FvwmTaskBar" NoTitle,NoHandles, HandleWidth 4, BorderWidth 4, Sticky, StaysOnTop, WindowListSkip, CirculateSkip,NoInset
*FvwmTaskBar: UseSkipList
#*FvwmTaskBar: UpdateInterval 100
*FvwmTaskBar: ClockFormat %H:%M %D
*FvwmTaskBar: AutoStick
*FvwmTaskBar: DeskOnly
#*FvwmTaskBar: Action Click1 DeiconifyRaiseAndFocus
*FvwmTaskBar: Action Click2 Iconify On
*FvwmTaskBar: Action Click3 Lower
#*FvwmTaskBar: Action Click3 FvwmIdent
#*FvwmTaskBar: MailCommand Exec exec
*FvwmTaskBar: 3DFvwm
*FvwmTaskBar: StartName LINUX
*FvwmTaskBar: StartMenu MenuFvwmRoot mouse -100p -108m
*FvwmTaskBar: Font "StringEncoding=gbk-0:Shadow=0 0 SEft:simsun:size=10:encoding=iso10646-1"
*FvwmTaskBar: Font "StringEncoding=gbk-0:Shadow=0 0 SEft:simsun:size=10:encoding=iso10646-1"
*FvwmTaskBar: SelFont "StringEncoding=gbk-0:Shadow=0 0 SEft:simsun:size=10:encoding=iso10646-1"
#*FvwmTaskBar: ShowTips
*FvwmTaskBar: WindowButtonsRightMargin 0
*FvwmTaskBar: Back #36648B
*FvwmTaskBar: Fore white
*FvwmTaskBar: FocusFore cornsilk
*FvwmTaskBar: IconBack #36648B
*FvwmTaskBar: IconFore white

#Mouse setting
CursorStyle ROOT left_ptr
CursorStyle TITLE left_ptr
CursorStyle DEFAULT left_ptr
CursorStyle SYS left_ptr
CursorStyle MENU left_ptr

#运行
DestroyModuleConfig FvwmForm-Run: *
*FvwmForm-Run: Fore white
*FvwmForm-Run: Back #36648B
*FvwmForm-Run: ItemFore white
*FvwmForm-Run: ItemBack #36648B
*FvwmForm-Run: WarpPointer
*FvwmForm-Run: Title "运行..."
*FvwmForm-Run: Line left
*FvwmForm-Run: Font "StringEncoding=gbk-0:Shadow=0 0 SEft:simsun:size=10:encoding=iso10646-1"
*FvwmForm-Run: ButtonFont "StringEncoding=gbk-0:Shadow=0 0 SEft:simsun:size=10:encoding=iso10646-1"
*FvwmForm-Run: Text "           "
*FvwmForm-Run: Line left
*FvwmForm-Run: Text "命令"
*FvwmForm-Run: Input CMD 25 ""
*FvwmForm-Run: Line left
*FvwmForm-Run: Text "  "
*FvwmForm-Run: Line expand
*FvwmForm-Run: Text ""
*FvwmForm-Run: Button quit "运行" ^M
*FvwmForm-Run: Command Exec exec $(CMD) &
*FvwmForm-Run: Text ""
*FvwmForm-Run: Text ""
*FvwmForm-Run: Button quit "取消"
*FvwmForm-Run: Command Nop

TOP


ButtonStyle 4 MiniIcon (-- flat)
改为
ButtonStyle 4  (-- flat)
醉卧沙场君莫笑 古来征战几人回

TOP

呵呵  我刚才也才看到   哈哈  大意了

我改到 1 上面去了  谢谢你哦

TOP