File tree 8 files changed +123
-0
lines changed
8 files changed +123
-0
lines changed Original file line number Diff line number Diff line change
1
+ [Rich text editor] Fix code appearance
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <!--
3
+ ~ Copyright 2018 The Android Open Source Project
4
+ ~ Modifications Copyright 2022 New Vector Ltd
5
+ ~
6
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
7
+ ~ you may not use this file except in compliance with the License.
8
+ ~ You may obtain a copy of the License at
9
+ ~
10
+ ~ http://www.apache.org/licenses/LICENSE-2.0
11
+ ~
12
+ ~ Unless required by applicable law or agreed to in writing, software
13
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
14
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ ~ See the License for the specific language governing permissions and
16
+ ~ limitations under the License.
17
+ -->
18
+ <shape xmlns : android =" http://schemas.android.com/apk/res/android" >
19
+ <solid android : color =" ?vctr_system" />
20
+ <stroke android : width =" @dimen/code_block_border_width" android : color =" ?vctr_content_quinary" />
21
+ <corners android : radius =" @dimen/code_block_border_radius" />
22
+ </shape >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <!--
3
+ ~ Copyright 2018 The Android Open Source Project
4
+ ~ Modifications Copyright 2022 New Vector Ltd
5
+ ~
6
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
7
+ ~ you may not use this file except in compliance with the License.
8
+ ~ You may obtain a copy of the License at
9
+ ~
10
+ ~ http://www.apache.org/licenses/LICENSE-2.0
11
+ ~
12
+ ~ Unless required by applicable law or agreed to in writing, software
13
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
14
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ ~ See the License for the specific language governing permissions and
16
+ ~ limitations under the License.
17
+ -->
18
+ <shape xmlns : android =" http://schemas.android.com/apk/res/android" >
19
+ <solid android : color =" ?vctr_system" />
20
+ <stroke android : width =" @dimen/inline_code_border_width" android : color =" ?vctr_content_quinary" />
21
+ <corners android : topLeftRadius =" @dimen/inline_code_border_radius"
22
+ android : bottomLeftRadius =" @dimen/inline_code_border_radius" />
23
+ </shape >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <!--
3
+ ~ Copyright 2018 The Android Open Source Project
4
+ ~ Modifications Copyright 2022 New Vector Ltd
5
+ ~
6
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
7
+ ~ you may not use this file except in compliance with the License.
8
+ ~ You may obtain a copy of the License at
9
+ ~
10
+ ~ http://www.apache.org/licenses/LICENSE-2.0
11
+ ~
12
+ ~ Unless required by applicable law or agreed to in writing, software
13
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
14
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ ~ See the License for the specific language governing permissions and
16
+ ~ limitations under the License.
17
+ -->
18
+ <shape xmlns : android =" http://schemas.android.com/apk/res/android" >
19
+ <solid android : color =" ?vctr_system" />
20
+ <stroke android : width =" @dimen/inline_code_border_width" android : color =" ?vctr_content_quinary" />
21
+ </shape >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <!--
3
+ ~ Copyright 2018 The Android Open Source Project
4
+ ~ Modifications Copyright 2022 New Vector Ltd
5
+ ~
6
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
7
+ ~ you may not use this file except in compliance with the License.
8
+ ~ You may obtain a copy of the License at
9
+ ~
10
+ ~ http://www.apache.org/licenses/LICENSE-2.0
11
+ ~
12
+ ~ Unless required by applicable law or agreed to in writing, software
13
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
14
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ ~ See the License for the specific language governing permissions and
16
+ ~ limitations under the License.
17
+ -->
18
+ <shape xmlns : android =" http://schemas.android.com/apk/res/android" >
19
+ <solid android : color =" ?vctr_system" />
20
+ <stroke android : width =" @dimen/inline_code_border_width" android : color =" ?vctr_content_quinary" />
21
+ <corners android : topRightRadius =" @dimen/inline_code_border_radius"
22
+ android : bottomRightRadius =" @dimen/inline_code_border_radius" />
23
+ </shape >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <!--
3
+ ~ Copyright 2018 The Android Open Source Project
4
+ ~ Modifications Copyright 2022 New Vector Ltd
5
+ ~
6
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
7
+ ~ you may not use this file except in compliance with the License.
8
+ ~ You may obtain a copy of the License at
9
+ ~
10
+ ~ http://www.apache.org/licenses/LICENSE-2.0
11
+ ~
12
+ ~ Unless required by applicable law or agreed to in writing, software
13
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
14
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ ~ See the License for the specific language governing permissions and
16
+ ~ limitations under the License.
17
+ -->
18
+ <shape xmlns : android =" http://schemas.android.com/apk/res/android" >
19
+ <solid android : color =" ?vctr_system" />
20
+ <stroke android : width =" @dimen/inline_code_border_width" android : color =" ?vctr_content_quinary" />
21
+ <corners android : radius =" @dimen/inline_code_border_radius" />
22
+ </shape >
Original file line number Diff line number Diff line change 126
126
app : layout_constraintTop_toBottomOf =" @id/composerModeBarrier"
127
127
app : bulletRadius =" 4sp"
128
128
app : bulletGap =" 8sp"
129
+ app : codeBlockBackgroundDrawable =" @drawable/bg_code_block"
130
+ app : inlineCodeSingleLineBg =" @drawable/bg_inline_code_single_line"
131
+ app : inlineCodeMultiLineBgLeft =" @drawable/bg_inline_code_multi_line_left"
132
+ app : inlineCodeMultiLineBgMid =" @drawable/bg_inline_code_multi_line_mid"
133
+ app : inlineCodeMultiLineBgRight =" @drawable/bg_inline_code_multi_line_right"
129
134
tools : text =" @tools:sample/lorem/random" />
130
135
131
136
<com .google.android.material.textfield.TextInputEditText
Original file line number Diff line number Diff line change 8
8
android : layout_height =" wrap_content"
9
9
android : textAlignment =" viewStart"
10
10
android : textColor =" ?vctr_content_primary"
11
+ app : codeBlockBackgroundDrawable =" @drawable/bg_code_block"
12
+ app : inlineCodeSingleLineBg =" @drawable/bg_inline_code_single_line"
13
+ app : inlineCodeMultiLineBgLeft =" @drawable/bg_inline_code_multi_line_left"
14
+ app : inlineCodeMultiLineBgMid =" @drawable/bg_inline_code_multi_line_mid"
15
+ app : inlineCodeMultiLineBgRight =" @drawable/bg_inline_code_multi_line_right"
16
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
11
17
tools : text =" @sample/messages.json/data/message" />
You can’t perform that action at this time.
0 commit comments