Skip to content

Commit

Permalink
feat: 优化调整数据点样式选择器的icon与样式
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-XiaoLiang committed Jan 20, 2024
1 parent 5426bbd commit 851d980
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ class QrDataPointFragment : StyleAdjustFragment() {
override fun getContentTabs(): List<TabInfo> {
return listOf(
TabInfo(
tabIcon = R.drawable.ic_logo,
tabIcon = R.drawable.ic_qr_data_point_default,
panel = QrDataPointRectangleFragment::class.java,
key = KEY_RECTANGLE
),
TabInfo(
tabIcon = R.drawable.ic_logo,
tabIcon = R.drawable.ic_qr_data_point_vertical,
panel = QrDataPointVerticalFragment::class.java,
key = KEY_VERTICAL
),
TabInfo(
tabIcon = R.drawable.ic_logo,
tabIcon = R.drawable.ic_qr_data_point_horizontal,
panel = QrDataPointHorizontalFragment::class.java,
key = KEY_HORIZONTAL
)
Expand Down
51 changes: 51 additions & 0 deletions lQR/src/main/res/drawable/ic_qr_data_point_default.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M3,10L7,10L7,14L3,14L3,10Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M3,17L7,17L7,21L3,21L3,17Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M3,3L7,3L7,7L3,7L3,3Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M10,10L14,10L14,14L10,14L10,10Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M10,17L14,17L14,21L10,21L10,17Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M10,3L14,3L14,7L10,7L10,3Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M17,10L21,10L21,14L17,14L17,10Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M17,17L21,17L21,21L17,21L17,17Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M17,3L21,3L21,7L17,7L17,3Z"
android:strokeColor="#00000000" />
</vector>
31 changes: 31 additions & 0 deletions lQR/src/main/res/drawable/ic_qr_data_point_horizontal.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M3,17L7,17L7,21L3,21L3,17Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M3,3L14,3L14,7L3,7L3,3Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M10,17L21,17L21,21L10,21L10,17Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M3,10L21,10L21,14L3,14L3,10Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M17,3L21,3L21,7L17,7L17,3Z"
android:strokeColor="#00000000" />
</vector>
31 changes: 31 additions & 0 deletions lQR/src/main/res/drawable/ic_qr_data_point_vertical.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M3,17L7,17L7,21L3,21L3,17Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M3,3L7,3L7,14L3,14L3,3Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M10,3L14,3L14,21L10,21L10,3Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M17,10L21,10L21,21L17,21L17,10Z"
android:strokeColor="#00000000" />
<path
android:fillColor="#FFFFFF"
android:fillType="evenOdd"
android:pathData="M17,3L21,3L21,7L17,7L17,3Z"
android:strokeColor="#00000000" />
</vector>
5 changes: 4 additions & 1 deletion lQR/src/main/res/layout/item_qr_position_detection_tab.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
android:id="@+id/tabIconView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#6000" />
android:background="#6000"
android:padding="14dp"
android:scaleType="fitCenter"
android:src="@drawable/ic_logo" />

</com.lollipop.clip.RoundClipLayout>

Expand Down

0 comments on commit 851d980

Please sign in to comment.