Added transparent to widget color dialog

pull/197/head
M66B 5 years ago
parent 77aa03d0ba
commit 0186043fc7

@ -120,9 +120,10 @@ public class ActivityWidget extends ActivityBase {
setBackground(); setBackground();
} }
}) })
.setNegativeButton(R.string.title_reset, new DialogInterface.OnClickListener() { .setNegativeButton(R.string.title_transparent, new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
cbSemiTransparent.setChecked(false);
btnColor.setColor(Color.TRANSPARENT); btnColor.setColor(Color.TRANSPARENT);
setBackground(); setBackground();
} }

@ -84,9 +84,10 @@ public class ActivityWidgetSync extends ActivityBase {
btnColor.setColor(selectedColor); btnColor.setColor(selectedColor);
} }
}) })
.setNegativeButton(R.string.title_reset, new DialogInterface.OnClickListener() { .setNegativeButton(R.string.title_transparent, new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
cbSemiTransparent.setChecked(false);
btnColor.setColor(Color.TRANSPARENT); btnColor.setColor(Color.TRANSPARENT);
} }
}) })

@ -118,9 +118,10 @@ public class ActivityWidgetUnified extends ActivityBase {
btnColor.setColor(selectedColor); btnColor.setColor(selectedColor);
} }
}) })
.setNegativeButton(R.string.title_reset, new DialogInterface.OnClickListener() { .setNegativeButton(R.string.title_transparent, new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
cbSemiTransparent.setChecked(false);
btnColor.setColor(Color.TRANSPARENT); btnColor.setColor(Color.TRANSPARENT);
} }
}) })

@ -680,6 +680,7 @@
<string name="title_account_interval_hint">Frequency of refreshing the connection for push messages or frequency of checking for new messages</string> <string name="title_account_interval_hint">Frequency of refreshing the connection for push messages or frequency of checking for new messages</string>
<string name="title_account_partial_fetch_hint">Disable this only in case of empty messages or corrupt attachments</string> <string name="title_account_partial_fetch_hint">Disable this only in case of empty messages or corrupt attachments</string>
<string name="title_color">Color</string> <string name="title_color">Color</string>
<string name="title_transparent">Transparent</string>
<string name="title_account_ondemand">Synchronize manually</string> <string name="title_account_ondemand">Synchronize manually</string>
<string name="title_account_notify">Separate notifications</string> <string name="title_account_notify">Separate notifications</string>
<string name="title_account_left">Swipe left</string> <string name="title_account_left">Swipe left</string>

Loading…
Cancel
Save