1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 16:07:25 +08:00
Commit Graph

681 Commits

Author SHA1 Message Date
Gagah Pangeran Rosfatiputra
5c3129f1a2
add font size in HeadingTextFlowContainer 2021-06-22 12:24:56 +07:00
Gagah Pangeran Rosfatiputra
f89c154e18
change GetFontSizeByLevel to return actual font size 2021-06-22 12:24:25 +07:00
Jamie Taylor
752d0a9f0b
add sound to scroll-to-top button 2021-06-18 16:08:14 +09:00
Bartłomiej Dach
902bb84ca8
Merge branch 'master' into fix-wave-overlay-sound-on-switch 2021-06-11 22:05:08 +02:00
Dean Herbert
121df57dca Fix focused overlays playing their "appear" sound when not necessarily changing state 2021-06-12 00:26:33 +09:00
Jamie Taylor
0b95d07390
Change 'default' hover/click samples into 'button' samples and make 'soft' the new 'default' 2021-06-11 20:47:57 +09:00
Gagah Pangeran Rosfatiputra
28d7b06908
create OsuMarkdownImage 2021-06-10 09:38:07 +07:00
Dean Herbert
e8d4147773 Add missing null handling for never Markdig version 2021-06-07 16:08:44 +09:00
Dean Herbert
840f084dc4
Merge pull request #13303 from LeNitrous/mainmenu-storyboard-backgrounds
Add storyboards as a main menu background source
2021-06-04 19:50:40 +09:00
Nathan Alo
d00fb21188 prevent scaling container from creating a storyboard background 2021-06-03 13:24:21 +08:00
Dan Balasescu
47019196f6
Merge branch 'master' into fix-relative-link-resolution 2021-06-02 14:55:38 +09:00
Dean Herbert
ac761bb075 Use string.Empty instead of arbitrary string 2021-06-02 14:43:35 +09:00
Dean Herbert
3668f1861f Fix one more null issue 2021-06-01 17:10:09 +09:00
Dean Herbert
145e42928b Fix remaining null checks 2021-06-01 16:49:05 +09:00
Gagah Pangeran Rosfatiputra
b4dd935538
add corner radius and padding 2021-06-01 14:14:12 +07:00
Gagah Pangeran Rosfatiputra
5108dadfbc
use inline code in markdown text flow 2021-06-01 14:03:57 +07:00
Gagah Pangeran Rosfatiputra
1babb05fc7
add OsuMarkdownInlineCode 2021-06-01 14:03:31 +07:00
Dean Herbert
3ff97f787a Localise all URL generation for now to avoid weird Schedule logic 2021-06-01 13:56:59 +09:00
Gagah Pangeran Rosfatiputra
e02739a136
remove unused colour provider 2021-05-26 13:57:35 +07:00
Gagah Pangeran Rosfatiputra
04f16c0783
Set DocumentUrl inside CreateChildDependencies
Co-authored-by: Dean Herbert <pe@ppy.sh>
2021-05-26 13:55:16 +07:00
Dean Herbert
200592114f Make protected variables private 2021-05-26 14:13:02 +09:00
Gagah Pangeran Rosfatiputra
728258d93a
add website root url as document url 2021-05-25 00:29:59 +07:00
Gagah Pangeran Rosfatiputra
02cdd0b2de
use drawable link compiler in markdown link 2021-05-24 19:10:37 +07:00
Dan Balasescu
ce7c503e6e
Merge branch 'master' into playlist-unicode 2021-05-17 11:47:10 +09:00
Gagah Pangeran Rosfatiputra
bca5bee72e
remove duplicate CreateSpriteText in OsuMarkdownTextFlowContainer 2021-05-10 19:28:32 +07:00
Gagah Pangeran Rosfatiputra
22677cfeaf
add CreateBorder method in markdown table cell 2021-05-07 14:54:46 +07:00
Gagah Pangeran Rosfatiputra
d92e593ddd
extract out table head and body border into separate component 2021-05-07 14:47:46 +07:00
Gagah Pangeran Rosfatiputra
64e9c5e9ba
add return xmldoc in markdown unordered list 2021-05-07 14:41:27 +07:00
Gagah Pangeran Rosfatiputra
79a1d7b2b3
simplify CreateEmphasisedSpriteText 2021-05-07 14:40:01 +07:00
Gagah Pangeran Rosfatiputra
17b8963cf8
simplify CreateSpriteText in markdown table cell 2021-05-07 14:38:19 +07:00
Gagah Pangeran Rosfatiputra
3524cb7924
simplify CreateSpriteText in markdown heading 2021-05-07 14:36:35 +07:00
Gagah Pangeran Rosfatiputra
5b003750f8
change CreateListItem method in OsuMarkdownContainer 2021-05-07 13:20:48 +07:00
Gagah Pangeran Rosfatiputra
9233248a0b
add OsuMarkdownUnorderedListItem 2021-05-07 13:20:20 +07:00
Gagah Pangeran Rosfatiputra
dfcf760b7b
add OsuMarkdownOrderedListItem 2021-05-07 13:20:06 +07:00
Gagah Pangeran Rosfatiputra
bdfe44ddca
change OsuMarkdownListItem to abstract class 2021-05-07 13:19:30 +07:00
Gagah Pangeran Rosfatiputra
92022f2cba
add Separator component in OsuMarkdownSeparator 2021-05-06 17:17:14 +07:00
Gagah Pangeran Rosfatiputra
7b43730fe6
add QuoteBackground in OsuMarkdownQuoteBlock 2021-05-06 17:13:46 +07:00
Gagah Pangeran Rosfatiputra
010f625870
use derived component in OsuMarkdownFencedCodeBlock 2021-05-06 17:05:41 +07:00
Gagah Pangeran Rosfatiputra
67f51959db
Merge branch 'master' into osu-markdown 2021-05-06 16:23:20 +07:00
Gagah Pangeran Rosfatiputra
ba634cbf11
change line spacing to 21
We use margin bottom in osu-web markdown paragraph[1] as reference for
this line spacing value.

The value from osu-web itself is 1.5em[2]. Because the base font size of
the paragraph is 14px[3][4], the actual value is 14 * 1.5 = 21px

[1] 376cac43a0/resources/assets/less/bem/osu-md.less (L230)
[2] 376cac43a0/resources/assets/less/variables.less (L58)
[3] 376cac43a0/resources/assets/less/bem/osu-md.less (L9)
[4] 376cac43a0/resources/assets/less/variables.less (L161)
2021-05-06 15:15:50 +07:00
Gagah Pangeran Rosfatiputra
e7c563fb67
simplify CreateTextFlow in quote block 2021-05-06 15:11:45 +07:00
Gagah Pangeran Rosfatiputra
b6560a616a
add comment for base font size heading 2021-05-06 15:00:12 +07:00
Gagah Pangeran Rosfatiputra
0d3ca8dde1
change font weight of table header 2021-05-06 08:43:38 +07:00
Gagah Pangeran Rosfatiputra
550e6c0fbb
change quote block margin padding to use vertical and horizontal 2021-05-06 08:28:37 +07:00
Gagah Pangeran Rosfatiputra
cfd28c51bb
change block quote backgroudn width
Reference : 376cac43a0/resources/assets/less/base.less (L7-L10)
2021-05-06 08:28:37 +07:00
Gagah Pangeran Rosfatiputra
4567abe3db
add xmldoc for GetTextMarker 2021-05-06 08:28:37 +07:00
Gagah Pangeran Rosfatiputra
9bb80492c5
add level and isOrdered parameter 2021-05-06 05:29:29 +07:00
Gagah Pangeran Rosfatiputra
99e0cc9bbe
rename CreateTextMarker to GetTextMarker 2021-05-06 05:15:32 +07:00
Gagah Pangeran Rosfatiputra
3ddf551b03
remove unused this 2021-05-06 05:13:54 +07:00
Gagah Pangeran Rosfatiputra
266d8d8282
move list item constant position 2021-05-06 05:13:39 +07:00
Bartłomiej Dach
3cac837acf
Merge branch 'master' into skin-bindables 2021-05-05 20:16:27 +02:00
Gagah Pangeran Rosfatiputra
63381ff4f2
change heading font weight
h1 and h2 : Semi Bold (600)
- 376cac43a0/resources/assets/less/bem/osu-md.less (L111)
- 376cac43a0/resources/assets/less/bem/osu-md.less (L135)

The rest of heading : Bold (700)
- 376cac43a0/resources/assets/less/bem/osu-md.less (L97)
2021-05-04 09:34:21 +07:00
Gagah Pangeran Rosfatiputra
bfc328c5ab
change font weight for bold text 2021-05-04 09:09:51 +07:00
Dean Herbert
f36684a070 Guard against non-threadsafe transformation logic in ScalingContainer- 2021-05-03 15:17:04 +09:00
Dean Herbert
3dd4b7b746 Fix use of non-existent word in OsuFocusedOverlayContainer xmldoc 2021-05-03 15:08:34 +09:00
Gagah Pangeran Rosfatiputra
3e7df3bf02
change heading font size
Heading 1 : 30px
- 31579d45aa/resources/assets/less/base.less (L12-L16)

Heading 2 : 26px
- 31579d45aa/resources/assets/less/bem/osu-md.less (L133-L134)
- 31579d45aa/resources/assets/less/variables.less (L169)

Heading 3 : 20px
- 31579d45aa/resources/assets/less/bem/osu-md.less (L147-L148)
- 31579d45aa/resources/assets/less/variables.less (L170)
- 31579d45aa/resources/assets/less/variables.less (L154)

Heading 4 : 18px
- 31579d45aa/resources/assets/less/bem/osu-md.less (L160-L161)
- 31579d45aa/resources/assets/less/variables.less (L171)
- 31579d45aa/resources/assets/less/variables.less (L153)

Heading 5 : 16px
- 31579d45aa/resources/assets/less/bem/osu-md.less (L174-L175)
- 31579d45aa/resources/assets/less/variables.less (L172)
- 31579d45aa/resources/assets/less/variables.less (L152)

Heading 6 : 14px
- 31579d45aa/resources/assets/less/bem/osu-md.less (L183-L184)
- 31579d45aa/resources/assets/less/variables.less (L173)
- 31579d45aa/resources/assets/less/variables.less (L150)
2021-05-03 09:35:59 +07:00
Gagah Pangeran Rosfatiputra
b497785416
add OsuMarkdownHeading 2021-05-03 09:35:55 +07:00
Gagah Pangeran Rosfatiputra
8a2926c0b5
change default font size to 14
Reference :
- 31579d45aa/resources/assets/less/bem/osu-md.less (L9)
- 31579d45aa/resources/assets/less/variables.less (L161)
2021-05-03 09:18:45 +07:00
Gagah Pangeran Rosfatiputra
18bfcd7b22
add hover colour to OsuMarkdownLinkText 2021-05-02 22:41:11 +07:00
Gagah Pangeran Rosfatiputra
88aaa9b332
add inline code colour
Reference : 31579d45aa/resources/assets/less/bem/osu-md.less (L12-L17)
2021-05-02 22:35:30 +07:00
Gagah Pangeran Rosfatiputra
fc4fa4f696
use ListBlock IsOrdered to determine ordered or unordered list 2021-04-30 11:48:37 +07:00
Gagah Pangeran Rosfatiputra
11d0f12455
change create text marker to virtual 2021-04-30 11:36:51 +07:00
Gagah Pangeran Rosfatiputra
cf53a05dfd
change marker size and position for ordered list 2021-04-30 10:59:23 +07:00
Gagah Pangeran Rosfatiputra
e6579352f9
add left padding for ordered list
In osu-md.less, this rule style[1] removes padding left in ordered list.
But in this rule style[2], pseudo element `::before` is used as marker
or counter and has minimal width 30px. So we use this as left padding
size.

[1] 5b0e3ac3ff/resources/assets/less/bem/osu-md.less (L196-L200)
[2] 5b0e3ac3ff/resources/assets/less/bem/osu-md.less (L210-L219)
2021-04-30 10:56:41 +07:00
Gagah Pangeran Rosfatiputra
c0d9f9f8c6
use order number as marker for ordered list 2021-04-30 10:48:12 +07:00
Gagah Pangeran Rosfatiputra
2a3479f30d
add order in OsuMarkdownListItem for ordered list 2021-04-30 10:47:51 +07:00
Gagah Pangeran Rosfatiputra
781064ba96
create list marker based on its level 2021-04-30 10:40:06 +07:00
Gagah Pangeran Rosfatiputra
f676526cf4
add level in OsuMarkdownListItem 2021-04-30 10:39:48 +07:00
Gagah Pangeran Rosfatiputra
e3cc4561ab
add bullet marker in OsuMarkdownListItem 2021-04-30 10:35:40 +07:00
Gagah Pangeran Rosfatiputra
010c51e6ed
change OsuMarkdownListItem to composite drawable 2021-04-30 10:12:43 +07:00
Gagah Pangeran Rosfatiputra
1e8b3f3a8c
handle list padding in OsuMarkdownListItem
Reference : 5b0e3ac3ff/resources/assets/less/bem/osu-md.less (L193-L194)
2021-04-30 09:47:25 +07:00
Gagah Pangeran Rosfatiputra
a24a279404
use OsuMarkdownListItem for ListItemBlock 2021-04-30 09:43:21 +07:00
Gagah Pangeran Rosfatiputra
820408757a
add OsuMarkdownListItem 2021-04-30 09:43:05 +07:00
Dean Herbert
141d3af302 Add the ability to temporarily disable user scaling on a ScalingContainer 2021-04-29 17:19:47 +09:00
Gagah Pangeran Rosfatiputra
c09067c3d5
add OsuMarkdownTable 2021-04-28 10:53:12 +07:00
Gagah Pangeran Rosfatiputra
2252d308c8
add OsuMarkdownTableCell
Reference :
d56352aeef/resources/assets/less/bem/osu-md.less (L254-L277)
2021-04-28 10:53:00 +07:00
Gagah Pangeran Rosfatiputra
736eace00a
add OsuMarkdownQuoteBlock
Reference:
d56352aeef/resources/assets/less/base.less (L7-L10)
2021-04-28 10:11:29 +07:00
Gagah Pangeran Rosfatiputra
6a921af085
add OsuMarkdownSeparator
Reference
d56352aeef/resources/assets/less/bem/osu-md.less (L19-L21)
2021-04-28 09:23:05 +07:00
Gagah Pangeran Rosfatiputra
6959f2a8cc
add OsuMarkdownFencedCodeBlock
Reference :
d56352aeef/resources/assets/less/bem/osu-md.less (L41-L45)
2021-04-27 16:01:32 +07:00
Gagah Pangeran Rosfatiputra
6cccbabad8
override CreateTextFlow in OsuMarkdownContainer 2021-04-27 14:19:16 +07:00
Gagah Pangeran Rosfatiputra
c686c5224b
add OsuMarkdownTextFlowContainer 2021-04-27 14:17:51 +07:00
Gagah Pangeran Rosfatiputra
aa07482cbb
Add OsuMarkdownLinkText
Color from
d56352aeef/resources/assets/less/functions.less (L159-L165)
2021-04-27 14:15:19 +07:00
Gagah Pangeran Rosfatiputra
b75b9a97ed
add OsuMarkdownContainer
All of the markdown file in osu-wiki have YAML frontmatter. This YAML is
parsed as common markdown paragraph. So we add `UseYamlFrontMatter()` in
markdown pipeline builder to parse YAML as `YamlFrontMatterBlock`.
2021-04-27 14:09:58 +07:00
Bartłomiej Dach
2a7ef1f80f Use more general type 2021-04-19 19:27:35 +02:00
smoogipoo
ef3801b5dd Add helper method supporting RomanisableString 2021-04-19 15:29:26 +09:00
PercyDan54
488001d570
Support SpriteText for LinkFlowContainer 2021-04-18 20:58:08 +08:00
Dean Herbert
7654df94f6
Merge pull request #12395 from frenzibyte/fix-cinema-ignore-settings
Fix beatmap background displayed if storyboard is hidden on "Cinema" mod
2021-04-14 14:31:03 +09:00
Salman Ahmed
36510309d1 Merge EnableUserDim and IgnoreUserSettings to one bindable 2021-04-13 10:58:56 +03:00
Dean Herbert
0eab9daf13 Update existing overlay containers to not block scroll input 2021-04-12 16:41:36 +09:00
smoogipoo
d3f0c0730d Merge branch 'master' into non-concurrent-sample-playback 2021-02-12 17:22:15 +09:00
Dean Herbert
a073376920 Show URLs in tooltips when custom text has replaced the link 2021-02-12 15:32:31 +09:00
Jamie Taylor
806324b196 Allow overriding of Overlay pop-in and pop-out samples 2021-02-10 15:44:05 +09:00
Dean Herbert
bb0753f68d Use a better method of cancelling user scroll 2021-02-02 15:44:03 +09:00
Dean Herbert
ed63b571d2 Add "new" override for ScrollToEnd To UserTrackingScrollContainer 2021-02-02 15:16:28 +09:00
Bartłomiej Dach
360f26c13d Merge branch 'master' into scroll-to-20 2021-01-22 19:58:36 +01:00
Bartłomiej Dach
f3192877fe Update outdated comment 2021-01-22 19:48:33 +01:00
Bartłomiej Dach
61fcb486a8 Trim unnecessary parentheses 2021-01-22 19:47:38 +01:00
Dean Herbert
a5f7ca485b Fix unintended xmldoc tag edit 2021-01-22 16:53:31 +09:00
Dean Herbert
bfabb1fdea Change offset value to 10% 2021-01-22 16:50:22 +09:00
Dean Herbert
65b7075984 Limit the effect of parallax when outside the bounds of the ParallaxContainer
This fixes the visual issues that still remain when mouse confining
fails. I think it also feels more correct in general.
2021-01-22 15:43:19 +09:00