-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(accessibility): add colored warning icon next to full rooms in e…
…vent lists. closes #32
- Loading branch information
Showing
5 changed files
with
63 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
package be.digitalia.fosdem.model | ||
|
||
import androidx.annotation.ColorRes | ||
import androidx.annotation.DrawableRes | ||
import androidx.annotation.StringRes | ||
import be.digitalia.fosdem.R | ||
|
||
enum class RoomStatus(@StringRes @get:StringRes val nameResId: Int, | ||
@ColorRes @get:ColorRes val colorResId: Int) { | ||
OPEN(R.string.room_status_open, R.color.room_status_open), | ||
FULL(R.string.room_status_full, R.color.room_status_full), | ||
EMERGENCY_EVACUATION(R.string.room_status_emergency_evacuation, R.color.room_status_emergency_evacuation) | ||
enum class RoomStatus( | ||
@StringRes @get:StringRes val nameResId: Int, | ||
@ColorRes @get:ColorRes val colorResId: Int, | ||
@DrawableRes @get:DrawableRes val iconResId: Int | ||
) { | ||
OPEN(R.string.room_status_open, R.color.room_status_open, 0), | ||
FULL(R.string.room_status_full, R.color.room_status_full, R.drawable.ic_warning_white_18sp), | ||
EMERGENCY_EVACUATION( | ||
R.string.room_status_emergency_evacuation, | ||
R.color.room_status_emergency_evacuation, | ||
R.drawable.ic_warning_white_18sp | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="18sp" | ||
android:height="18sp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:fillColor="#FFFFFFFF" | ||
android:pathData="M1,21h22L12,2 1,21zM13,18h-2v-2h2v2zM13,14h-2v-4h2v4z" /> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters