Skip to content

Commit

Permalink
Change AnkiWeb text color for dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
dattasneha committed Sep 20, 2024
1 parent 10761bf commit d62c28b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
14 changes: 7 additions & 7 deletions AnkiDroid/src/main/res/drawable/ankiweb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@
android:viewportHeight="45">

<path
android:fillColor="#25272A"
android:fillColor="@color/ankiweb_text"
android:pathData="M177.946 36V1.09091H181.969V13.9773H182.31C182.605 13.5227 183.014 12.9432 183.537 12.2386C184.071 11.5227 184.832 10.8864 185.821 10.3295C186.821 9.76137 188.173 9.47728 189.878 9.47728C192.082 9.47728 194.026 10.0284 195.707 11.1307C197.389 12.233 198.702 13.7955 199.645 15.8182C200.588 17.8409 201.06 20.2273 201.06 22.9773C201.06 25.75 200.588 28.1534 199.645 30.1875C198.702 32.2102 197.395 33.7784 195.724 34.892C194.054 35.9943 192.128 36.5455 189.946 36.5455C188.264 36.5455 186.918 36.267 185.906 35.7102C184.895 35.142 184.116 34.5 183.571 33.7841C183.026 33.0568 182.605 32.4545 182.31 31.9773H181.832V36H177.946ZM181.901 22.9091C181.901 24.8864 182.19 26.6307 182.77 28.142C183.349 29.642 184.196 30.8182 185.31 31.6705C186.423 32.5114 187.787 32.9318 189.401 32.9318C191.082 32.9318 192.486 32.4886 193.611 31.6023C194.747 30.7045 195.599 29.5 196.168 27.9886C196.747 26.4659 197.037 24.7727 197.037 22.9091C197.037 21.0682 196.753 19.4091 196.185 17.9318C195.628 16.4432 194.781 15.267 193.645 14.4034C192.52 13.5284 191.105 13.0909 189.401 13.0909C187.764 13.0909 186.389 13.5057 185.276 14.3352C184.162 15.1534 183.321 16.3011 182.753 17.7784C182.185 19.2443 181.901 20.9545 181.901 22.9091Z" />
<path
android:fillColor="#25272A"
android:fillColor="@color/ankiweb_text"
android:pathData="M160.44 36.5455C157.918 36.5455 155.741 35.9886 153.912 34.875C152.094 33.75 150.69 32.1818 149.702 30.1705C148.724 28.1477 148.236 25.7955 148.236 23.1136C148.236 20.4318 148.724 18.0682 149.702 16.0227C150.69 13.9659 152.065 12.3636 153.827 11.2159C155.599 10.0568 157.668 9.47727 160.031 9.47727C161.395 9.47727 162.741 9.70454 164.071 10.1591C165.401 10.6136 166.611 11.3523 167.702 12.375C168.793 13.3864 169.662 14.7273 170.31 16.3977C170.957 18.0682 171.281 20.125 171.281 22.5682V24.2727H151.099V20.7955H167.19C167.19 19.3182 166.895 18 166.304 16.8409C165.724 15.6818 164.895 14.767 163.815 14.0966C162.747 13.4261 161.486 13.0909 160.031 13.0909C158.429 13.0909 157.043 13.4886 155.872 14.2841C154.713 15.0682 153.821 16.0909 153.196 17.3523C152.571 18.6136 152.259 19.9659 152.259 21.4091V23.7273C152.259 25.7045 152.599 27.3807 153.281 28.7557C153.974 30.1193 154.935 31.1591 156.162 31.875C157.389 32.5795 158.815 32.9318 160.44 32.9318C161.497 32.9318 162.452 32.7841 163.304 32.4886C164.168 32.1818 164.912 31.7273 165.537 31.125C166.162 30.5114 166.645 29.75 166.986 28.8409L170.872 29.9318C170.463 31.25 169.776 32.4091 168.81 33.4091C167.844 34.3977 166.651 35.1705 165.23 35.7273C163.81 36.2727 162.213 36.5455 160.44 36.5455Z" />
<path
android:fillColor="#25272A"
android:fillColor="@color/ankiweb_text"
android:pathData="M113.224 36L103.679 1.09091H107.974L115.27 29.5227H115.611L123.043 1.09091H127.815L135.247 29.5227H135.588L142.884 1.09091H147.179L137.634 36H133.27L125.565 8.18182H125.293L117.588 36H113.224Z" />
<path
android:fillColor="#25272A"
android:fillColor="@color/ankiweb_text"
android:pathData="M93.3068 36V9.81818H97.3296V36H93.3068ZM95.3523 5.45455C94.5682 5.45455 93.892 5.1875 93.3239 4.65341C92.767 4.11932 92.4886 3.47727 92.4886 2.72727C92.4886 1.97727 92.767 1.33523 93.3239 0.801135C93.892 0.267045 94.5682 0 95.3523 0C96.1364 0 96.8068 0.267045 97.3636 0.801135C97.9318 1.33523 98.2159 1.97727 98.2159 2.72727C98.2159 3.47727 97.9318 4.11932 97.3636 4.65341C96.8068 5.1875 96.1364 5.45455 95.3523 5.45455Z" />
<path
android:fillColor="#25272A"
android:fillColor="@color/ankiweb_text"
android:pathData="M70.9474 26.4545L70.8793 21.4773H71.6974L83.152 9.81818H88.1293L75.9247 22.1591H75.5838L70.9474 26.4545ZM67.1974 36V1.09091H71.2202V36H67.1974ZM83.8338 36L73.6065 23.0455L76.4702 20.25L88.9474 36H83.8338Z" />
<path
android:fillColor="#25272A"
android:fillColor="@color/ankiweb_text"
android:pathData="M43.142 20.25V36H39.1193V9.81818H43.0057V13.9091H43.3466C43.9602 12.5795 44.892 11.5114 46.142 10.7045C47.392 9.88636 49.0057 9.47727 50.983 9.47727C52.7557 9.47727 54.3068 9.84091 55.6364 10.5682C56.9659 11.2841 58 12.375 58.7386 13.8409C59.4773 15.2955 59.8466 17.1364 59.8466 19.3636V36H55.8239V19.6364C55.8239 17.5795 55.2898 15.9773 54.2216 14.8295C53.1534 13.6705 51.6875 13.0909 49.8239 13.0909C48.5398 13.0909 47.3921 13.3693 46.3807 13.9261C45.3807 14.483 44.5909 15.2955 44.0114 16.3636C43.4318 17.4318 43.142 18.7273 43.142 20.25Z" />
<path
android:fillColor="#25272A"
android:fillColor="@color/ankiweb_text"
android:pathData="M8.6591 36H4.22728L17.0455 1.09091H21.4091L34.2273 36H29.7955L19.3636 6.61364H19.0909L8.6591 36ZM10.2955 22.3636H28.1591V26.1136H10.2955V22.3636Z" />
</vector>
4 changes: 3 additions & 1 deletion AnkiDroid/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
<color name="flag_pink">#A70D64</color>
<color name="flag_turquoise">#138072</color>
<color name="flag_purple">#6320A0</color>
</resources>
<color name="ankiweb_text">#FFFFFF</color>
</resources>

1 change: 1 addition & 0 deletions AnkiDroid/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,6 @@
<!-- color used for bury count in study options(same as anki for light and dark) -->
<color name="disabled_gray_light">#858585</color>
<color name="disabled_gray_dark">#fcfcfc</color>
<color name="ankiweb_text">#25272A</color>
</resources>

0 comments on commit d62c28b

Please sign in to comment.