main
zhuzihcu 2023-04-19 18:04:14 +08:00
parent 6dd859dd1d
commit 7489a4bcbe
6 changed files with 24 additions and 44 deletions

View File

@ -110,7 +110,6 @@ FluScrollablePage{
id:table_view
Layout.fillWidth: true
Layout.topMargin: 20
width:parent.width
pageCurrent:1
pageCount:10
itemCount: 1000
@ -141,15 +140,15 @@ FluScrollablePage{
width:100
}
];
table_view.columns = columns
table_view.columns = columns
const dataSource = [
{
name: ",
age: 500,
address:"钟灵毓秀的花果山,如神仙仙境的水帘洞",
{
name: ",
age: 500,
address:"钟灵毓秀的花果山,如神仙仙境的水帘洞",
nickname:"齐天大圣"
}
];
}
];
table_view.dataSource = columns
}
}'

View File

@ -19,15 +19,6 @@ FluTheme::FluTheme(QObject *parent)
{
primaryColor(FluColors::getInstance()->Blue());
textSize(13);
nativeText(true);
nativeText(false);
frameless(true);
std::function<bool()> isDark = [](){
QPalette palette = (qobject_cast<QGuiApplication *>(QCoreApplication::instance()))->palette();
QColor color = palette.color(QPalette::Window).rgb();
return !(color.red() * 0.2126 + color.green() * 0.7152 + color.blue() * 0.0722 > 255 / 2);
};
dark(isDark());
connect(qobject_cast<QGuiApplication *>(QCoreApplication::instance()), &QGuiApplication::paletteChanged, this, [=] (const QPalette &) {
dark(isDark());
});
}

View File

@ -86,7 +86,7 @@ Item {
Behavior on height {
NumberAnimation{
duration: 167
easing.type: Easing.Bezier
easing.type: Easing.BezierSpline
easing.bezierCurve: expand ? [ 0, 0, 0, 1 ] : [ 1, 0, 0, 0 ]
}
}

View File

@ -121,7 +121,7 @@ Item {
Behavior on height {
NumberAnimation{
duration: 167
easing.type: Easing.Bezier
easing.type: Easing.BezierSpline
easing.bezierCurve: [ 0, 0, 0, 1 ]
}
}
@ -140,7 +140,7 @@ Item {
Behavior on height {
NumberAnimation{
duration: 167
easing.type: Easing.Bezier
easing.type: Easing.BezierSpline
easing.bezierCurve: [ 0, 0, 0, 1 ]
}
}
@ -318,7 +318,7 @@ Item {
Behavior on height {
NumberAnimation{
duration: 167
easing.type: Easing.Bezier
easing.type: Easing.BezierSpline
easing.bezierCurve: [ 0, 0, 0, 1 ]
}
}
@ -511,7 +511,7 @@ Item {
Behavior on Layout.preferredWidth{
NumberAnimation{
duration: 167
easing.type: Easing.Bezier
easing.type: Easing.BezierSpline
easing.bezierCurve: [ 0, 0, 0, 1 ]
}
}
@ -557,7 +557,7 @@ Item {
from: 0
to: nav_swipe.height
duration: 167
easing.type: Easing.Bezier
easing.type: Easing.BezierSpline
easing.bezierCurve: [ 1, 0, 0, 0 ]
}
}
@ -567,7 +567,7 @@ Item {
from: nav_swipe.height;
to: 0
duration: 167
easing.type: Easing.Bezier
easing.type: Easing.BezierSpline
easing.bezierCurve: [ 0, 0, 0, 1 ]
}
}
@ -596,7 +596,7 @@ Item {
Behavior on width{
NumberAnimation{
duration: 167
easing.type: Easing.Bezier
easing.type: Easing.BezierSpline
easing.bezierCurve: [ 0, 0, 0, 1 ]
}
}
@ -604,7 +604,7 @@ Item {
id:anim_layout_list_x
NumberAnimation{
duration: 167
easing.type: Easing.Bezier
easing.type: Easing.BezierSpline
easing.bezierCurve: [ 0, 0, 0, 1 ]
}
}

View File

@ -39,7 +39,9 @@ Rectangle {
id:behavior
enabled: false
NumberAnimation{
duration: 1000
duration: 999
easing.type: Easing.BezierSpline
easing.bezierCurve: [0.55,0.55,0,1]
onRunningChanged: {
if(!running){
behavior.enabled = false
@ -68,18 +70,6 @@ Rectangle {
ctx.arc(width/2, height/2, radius2 ,-0.5 * Math.PI,-0.5 * Math.PI + progress * 2 * Math.PI);
ctx.stroke();
ctx.closePath();
// var start_x = width/2 + Math.cos(-0.5 * Math.PI) * radius2;
// var start_y = height/2 + Math.sin(-0.5 * Math.PI) * radius2;
// ctx.beginPath();
// ctx.arc(start_x, start_y, 3, 0, 2*Math.PI);
// ctx.fill();
// ctx.closePath();
// var end_x = width/2 + Math.cos(-0.5 * Math.PI + progress * 2 * Math.PI) * radius2;
// var end_y = height/2 + Math.sin(-0.5 * Math.PI + progress * 2 * Math.PI) * radius2;
// ctx.beginPath();
// ctx.arc(end_x, end_y, 3, 0, 2*Math.PI);
// ctx.fill();
// ctx.closePath();
ctx.restore();
}
}

View File

@ -72,28 +72,28 @@ FluControl {
Behavior on anchors.leftMargin {
NumberAnimation {
duration: 167
easing.type: Easing.Bezier
easing.type: Easing.BezierSpline
easing.bezierCurve: [ 1, 0, 0, 0 ]
}
}
Behavior on anchors.rightMargin {
NumberAnimation {
duration: 167
easing.type: Easing.Bezier
easing.type: Easing.BezierSpline
easing.bezierCurve: [ 1, 0, 0, 0 ]
}
}
Behavior on width {
NumberAnimation {
duration: 167
easing.type: Easing.Bezier
easing.type: Easing.BezierSpline
easing.bezierCurve: [ 1, 0, 0, 0 ]
}
}
Behavior on scale {
NumberAnimation {
duration: 167
easing.type: Easing.Bezier
easing.type: Easing.BezierSpline
easing.bezierCurve: [ 1, 0, 0, 0 ]
}
}