Skip to content

Commit

Permalink
Hide help card header text (#3410)
Browse files Browse the repository at this point in the history
* Hide help card header text

* Looks better this way
  • Loading branch information
FikriMilano authored Jul 31, 2024
1 parent 5936d55 commit 70f408c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
19 changes: 19 additions & 0 deletions android/engine/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2021 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<dimen name="help_header_margin_bottom">0dp</dimen>
</resources>
1 change: 1 addition & 0 deletions android/engine/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
<string name="add">ADD</string>
<string name="data_migration_started">Started data migration from version %1$d</string>
<string name="data_migration_completed">Application data migrated to version %1$d</string>
<string name="help"></string>
<string name="no_data">No data set</string>
<string name="default_html_title">file</string>
</resources>
10 changes: 7 additions & 3 deletions android/engine/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,18 @@
<item name="android:textColorSecondary">@color/white</item>
<item name="questionnaireSubmitButtonStyle">@style/AppTheme.QuestionnaireSubmitButtonStyle</item>
<item name="questionnaireButtonStyle">@style/AppTheme.QuestionnaireButtonStyle</item>
<item name="questionnaireMediaImageStyle">@style/AppTheme.MediaImageStyle</item>
<item name="questionnaireCancelButtonStyle">@style/AppTheme.QuestionnaireCancelButtonStyle</item>
<item name="questionnaireGroupTypeQuestionTextStyle">@style/TextAppearance.Material3.HeadlineMedium</item>
<item name="questionnaireQuestionTextStyle">@style/TextAppearance.Material3.BodyLarge</item>
<item name="questionnaireMediaImageStyle">@style/AppTheme.MediaImageStyle</item>
<item name="questionnaireHelpHeaderStyle">@style/AppTheme.HelpHeaderStyle</item>
<!-- Help card container color -->
<item
name="android:colorBackground"
>@color/background_neutral_100</item>
<item name="colorOnBackground">@color/onBackground_neutral_10</item>

<item name="colorSurface">@color/surface_neutral_100</item>
<item name="colorOnSurface">@color/onSurface_neutral_10</item>

<item
name="colorSurfaceVariant"
>@color/surfaceVariant_neutral_variant_90</item>
Expand Down Expand Up @@ -108,4 +107,9 @@
>@dimen/item_media_image_margin_vertical</item>
</style>

<style name="AppTheme.HelpHeaderStyle" parent="TextAppearance.Material3.TitleSmall">
<item name="android:visibility">invisible</item>
<item name="android:height">0dp</item>
</style>

</resources>

0 comments on commit 70f408c

Please sign in to comment.