分页: 1 / 1

image progress

发表于 : 27 1月 2020, 07:40
elParkeur
I recreated the Huawei Watch GT 2 watchface and wanted to use the same image progress indicators as used in the Amazfit Rainbow watchface.

I had a look at the json of the rainbow watchface and I think I added the relevant parts to my json. But although the progress indicators appear in the animated GIF after building the bin file, they do not appear on the watch - neither as full-color ones nor as my images.

Any hints on what I am missing?

代码: 全选

{
  "Background": {
    "Image": {
      "X": 0,
      "Y": 0,
      "ImageIndex": 0
    },
    "Preview": {
      "X": 0,
      "Y": 0,
      "ImageIndex": 1
    }
  },
  "Activity": {
    "Pulse": {
      "TopLeftX": 190,
      "TopLeftY": 335,
      "BottomRightX": 265,
      "BottomRightY": 357,
      "Alignment": "TopCenter",
      "Spacing": 0,
      "ImageIndex": 2,
      "ImagesCount": 10
    },
    "Steps": {
      "Step": {
        "TopLeftX": 294,
        "TopLeftY": 235,
        "BottomRightX": 379,
        "BottomRightY": 257,
        "Alignment": "TopCenter",
        "Spacing": 0,
        "ImageIndex": 2,
        "ImagesCount": 10
      }
    }
  },
  "StepsProgress": {
    "Circle": {
      "CenterX": 337,
      "CenterY": 227,
      "RadiusX": 58,
      "RadiusY": 58,
      "StartAngle": 0,
      "EndAngle": 360,
      "Width": 10,
      "Color": "0x00000000FFD1D1D1",
      "Flatness": 180,
      "ImageIndex": 21
    },
    "ClockHand": {
      "OnlyBorder": false,
      "Color": "0x0000000000000000",
      "CenterOffset": {
        "X": 0,
        "Y": 0
      },
      "Shape": {
        "X": 0,
        "Y": 0
      }
    }
  },
  "Date": {
    "MonthAndDay": {
      "OneLine": {
        "Number": {
          "TopLeftX": 215,
          "TopLeftY": 110,
          "BottomRightX": 350,
          "BottomRightY": 134,
          "Alignment": "TopLeft",
          "Spacing": 1,
          "ImageIndex": 30,
          "ImagesCount": 10
        },
        "DelimiterImageIndex": 40
      },
      "TwoDigitsMonth": true,
      "TwoDigitsDay": true
    },
    "WeekDay": {
      "X": 135,
      "Y": 110,
      "ImageIndex": 23,
      "ImagesCount": 7
    }
  },
  "Battery": {
    "Text": {
      "TopLeftX": 75,
      "TopLeftY": 235,
      "BottomRightX": 160,
      "BottomRightY": 257,
      "Alignment": "TopCenter",
      "Spacing": 0,
      "ImageIndex": 2,
      "ImagesCount": 10
    },
    "Unknown4": {
      "OnlyBorder": false,
      "Color": "0x0000000000000000",
      "CenterOffset": {
        "X": 0,
        "Y": 0
      },
      "Shape": {
        "X": 0,
        "Y": 0
      }
    },
    "Percent": {
      "X": 0,
      "Y": 0,
      "ImageIndex": 12
    },
    "Scale": {
      "CenterX": 117,
      "CenterY": 227,
      "RadiusX": 58,
      "RadiusY": 58,
      "StartAngle": 0,
      "EndAngle": 360,
      "Width": 10,
      "Color": "0x00000000FFD1D1D1",
      "Flatness": 180,
      "ImageIndex": 21
    }
  },
  "AnalogDialFace": {
    "Seconds": {
      "OnlyBorder": false,
      "Color": "0x0000000000000000",
      "CenterOffset": {
        "X": 0,
        "Y": 0
      },
      "Shape": {
        "X": 0,
        "Y": 0
      },
      "Image": {
        "X": 16,
        "Y": 212,
        "ImageIndex": 15
      }
    },
    "Hours": {
      "OnlyBorder": false,
      "Color": "0x0000000000000000",
      "CenterOffset": {
        "X": 0,
        "Y": 0
      },
      "Shape": {
        "X": 0,
        "Y": 0
      },
      "Image": {
        "X": 21,
        "Y": 145,
        "ImageIndex": 13
      }
    },
    "Minutes": {
      "OnlyBorder": false,
      "Color": "0x0000000000000000",
      "CenterOffset": {
        "X": 0,
        "Y": 0
      },
      "Shape": {
        "X": 0,
        "Y": 0
      },
      "Image": {
        "X": 21,
        "Y": 203,
        "ImageIndex": 14
      }
    }
  }
}

Re: image progress

发表于 : 27 1月 2020, 18:16
elParkeur
I got a step further. The problem was that both progress indicators used the same color. Defining different colors made the circles appears.

But now the next issue arises. The CenterX and CenterY properties seem to be ignored to some extent. The steps progress always appears on the left side while all others seem to be displayed at the top.

Is this a bug of the py_amazfit_tools or are these properties not supported by the watch?