Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,810 --> 00:00:05,250
In the last section, we got our race one widget to show up on the screen, but it's sandwiched directly
2
00:00:05,250 --> 00:00:06,270
against the password input.
3
00:00:06,630 --> 00:00:10,740
In addition, the button itself is gray, which is just a little bit boring.
4
00:00:11,310 --> 00:00:14,420
So in this section, we're going to very quickly fix the color.
5
00:00:14,700 --> 00:00:19,590
Well, then take the break and we'll put in a little bit of spacing between the password element and
6
00:00:19,590 --> 00:00:20,400
the button itself.
7
00:00:20,850 --> 00:00:24,960
The reason we're going to take a break first is that the process of adding that spacing is going to
8
00:00:24,960 --> 00:00:26,360
be just a little bit involved.
9
00:00:26,370 --> 00:00:28,740
And so I want to make sure that we have a lot of time to address it.
10
00:00:29,400 --> 00:00:34,100
So very quickly, let's make sure that we change the color of the button to do so.
11
00:00:34,110 --> 00:00:37,680
I'm going to first very quickly open up my race button class documentation.
12
00:00:39,310 --> 00:00:44,500
And then on my constructor, you'll notice that it has a name, parameter of color, so we can simply
13
00:00:44,500 --> 00:00:48,300
pass in a color property to this thing and it will change the color of the button.
14
00:00:49,420 --> 00:00:55,870
So back at my race button element inside the submit button method, I'm going to add on a color and
15
00:00:55,870 --> 00:01:01,690
I can specify one of the constant colors on the colors class so that colors dot.
16
00:01:02,290 --> 00:01:04,840
And then I'll just make this thing blue like so.
17
00:01:06,580 --> 00:01:11,620
If you're using this code, you can actually hover over that blue property right there and you'll get
18
00:01:11,620 --> 00:01:15,790
a nice little preview of what color Çöpler looks like, which is a nice little thing.
19
00:01:16,700 --> 00:01:20,090
All right, so quick test, I'll save this file, I'll do my refresh.
20
00:01:21,260 --> 00:01:25,860
And our button is blue, OK, simple enough, so let's take a quick pause right here.
21
00:01:25,910 --> 00:01:30,350
Again, we're going to separate this into two sections because adding in the spacing is just a little
22
00:01:30,350 --> 00:01:31,160
bit complicated.
23
00:01:31,340 --> 00:01:32,060
So a quick break.
24
00:01:32,480 --> 00:01:34,700
Come back to the next section and add that spacing in.
2493
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.