Skip to content

Instantly share code, notes, and snippets.

@ichimarusakura
Created May 22, 2017 03:04
Show Gist options
  • Select an option

  • Save ichimarusakura/d0af82e73025f100970eb4a54a6ba778 to your computer and use it in GitHub Desktop.

Select an option

Save ichimarusakura/d0af82e73025f100970eb4a54a6ba778 to your computer and use it in GitHub Desktop.
大幅度发大幅度
/***************************************QGroupBox style*************************************************/
ShadeWiget #testGroupBox{
background-color: transparent;
border: 1px solid #aaaa7f;
border-radius: 0px;
margin-top: 0px; /* leave space at the top for the title */
margin-right: 0px;
margin-bottom: 5px;
margin-left: 0px;
}
ShadeWiget #testGroupBox::title {
subcontrol-origin: margin;
subcontrol-position: top left; /* position at the top center */
padding: 2px 3px;
color: #000000;
spacing: 5px;
top: 0px;
right: 0px;
bottom: 0px;
left: 10px;
font-weight:bold;
}
/***********************************窗口阴影样式*************************************/
/*绘制子部件阴影需要用到: */
/*qproperty-shadeBorderOffsetX */
/*qproperty-shadeBorderOffsetY */
/*qproperty-subShadeColor */
/*qproperty-blurRadius */
/*列如QGroupBox这类带有边框的部件: */
/*需要调整边框上下左右的边距 */
/*窗口阴影*/
ShadeWiget #shadeHelper{
qproperty-widgetLevel:0; /*widgetLevel=0用来描绘父窗口*/
qproperty-fillColor: #dedede; /*窗口内部填充色*/
qproperty-shadeColor: #6f6f6f; /*阴影边框色*/
qproperty-shadeColorAlpha: 50; /*阴影色Alpha[0,255]值*/
qproperty-shadeBorderOffsetX: 5; /*X轴偏移量*/
qproperty-shadeBorderOffsetY: 5; /*Y轴偏移量*/
qproperty-orientation: true; /*阴影渐变方向 true 由内向外加深 false 由外向内加深*/
qproperty-subShadeColor: #9a9a9a; /*子部件阴影色*/
qproperty-blurRadius: 5; /*模糊半径*/
}
ShadeWiget #secondShadeHelper{
qproperty-widgetLevel:1; /*widgetLevel=1用来描绘子部件*/
qproperty-fillColor: #55aa7f;
qproperty-shadeColor: #ff5500;
qproperty-shadeColorAlpha: 50;
qproperty-shadeBorderOffsetX: 5;
qproperty-shadeBorderOffsetY: 5;
qproperty-orientation: true;
qproperty-subShadeColor: #ffaaff;
qproperty-blurRadius: 5;
}
ShadeWiget #groupBox{
qproperty-widgetLevel:0;
qproperty-fillColor: #00ffff;
qproperty-shadeColor: #000000;
qproperty-shadeColorAlpha: 100;
qproperty-shadeBorderOffsetX: 0;
qproperty-shadeBorderOffsetY: 5;
qproperty-orientation: true;
qproperty-subShadeColor: #ffaaff;
qproperty-blurRadius: 5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment