zoukankan      html  css  js  c++  java
  • Foobar2000–panel stack splitter

    在imagebutton上点击时后,鼠标总是变成水平状,在 behaviour 中关闭 enable resizeable border就好了.

    CUI的布局:

    1

    根选项最好是Horizontal/Vertical splitter,因为只有这样才能控制下面Panel Stack Splitter的caption的显隐,Playlist Tabs只能包含一个播放列表,不防设在PSS中设Playlist Tabs的名字为ELPlaylist。配制那个PSS,对下属的两个面板就选“强制布局”,位置参数都设成这样,Left:0,Right:0, Width: %ps_width%, Height: $sub(%ps_height,36),然后在Script的PerTrack中粘贴下面的代码:


    $puts(skin_path,%ps_foobar2000_path%skinmono_lite)

    $drawrect(0,$sub(%ps_height%,36),%ps_width%,36,30-30-30,,)

    $if($or($not(%ps_isplaying%),%ps_ispause%),
    $imagebutton(41,$sub(%_height%,29),,,$get(skin_path)play.png,$get(skin_path)play_h.png,COMMAND:Playback/Play or Pause),
    $imagebutton(41,$sub(%_height%,29),,,$get(skin_path)pause.png,$get(skin_path)pause_h.png,COMMAND:Playback/Play or Pause))
    $imagebutton(12,$sub(%_height%,28),,,$get(skin_path)prev.png,$get(skin_path)prev_h.png,COMMAND:Playback/Previous)
    $imagebutton(71,$sub(%_height%,28),,,$get(skin_path) ext.png,$get(skin_path) ext_h.png,COMMAND:Playback/Next)
    $imageabs(105,$sub(%_height%,30),1,24,$get(skin_path)splitter.png)

    $if($isvisible_c(ELPlaylist),
    $textbutton(120,$sub(%ps_height%,30),$add($gettextwidth(Lyric),10),22,Lyric,Lyric,PANELSHOW:ELPlaylist:0;PANELSHOW:Lyric:1;REFRESH,fontcolor:255-255-255 brushcolor:100-100-100,fontcolor:255-219-0 brushcolor:0-35-70),
    $textbutton(120,$sub(%ps_height%,30),$add($gettextwidth(Lyric),10),22,Lyric,Lyric,PANELSHOW:ELPlaylist:1;PANELSHOW:Lyric:0;REFRESH,fontcolor:255-255-255 brushcolor:100-100-100,fontcolor:255-219-0 brushcolor:0-35-70)
    )


    2

  • 相关阅读:
    发明专利授权容易吗?
    No module named 'PyQt5.QtWebEngineWidgets' 解决方法
    Python可视化界面编程入门
    Python用户界面编程PyQt5的四种的布局方式
    cmd进入任何一个文件夹的步骤?
    cmd如何进入和退出Python编程环境?
    《C++ Primer Plus》16.3 标准模板库 学习笔记
    《C++ Primer Plus》16.2 智能指针模板类
    《C++ Primer Plus》16.1 string类 学习笔记
    Python错误和异常 学习笔记
  • 原文地址:https://www.cnblogs.com/cnsealine/p/4484160.html
Copyright © 2011-2022 走看看